The power cut while I am running my code, and all the code is erased even the one I already saved!!! .. How can I get the code back ?

  • Well, first of all i advice you to make a copy of all your project-relevant files and folders on an USB Stick an put that one in a drawer. Just to be safe.
    – Johannes_B
    Feb 18, 2014 at 8:03
  • That sucks big time but I don't think you can. This happened to me with TeXnicCenter on Win machine before. I don't know about other systems.
    – percusse
    Feb 18, 2014 at 8:03
  • @percusse Is it possible, that the files are gone to nirvana completely? I hope not, since a files are saved before compiling?
    – Johannes_B
    Feb 18, 2014 at 8:04
  • 2
    I sort of agree with @SvendTveskæg, and there is probably a greater chance of getting help on another site (perhaps SuperUser?). You should state what operating system you use though. Feb 18, 2014 at 8:11
  • 1
    I use VIM as an editor. It writes a recovery/swap file after every 4 sec of idle time or so. This allows to recover from almost all kinds of accident, even from voluntarily pulling the USB stick containing the file you are currently working on in the middle of an editing session. See vimdoc.sourceforge.net/htmldoc/recover.html.
    – AlexG
    Feb 18, 2014 at 8:41


Browse other questions tagged .