Lost my CODE!

I was finishing my biggest project yet that I worked on for 2 weeks and… my computer powerplug screwed up and my system shut off. I havn’t done any recovery or back ups and the class I was working on completely disapeared. It was as if the text was invisible, because I can highlight it. I was going to release it as a WIP today too D: :’( . Deep down Inside I know I put in a LOT of work but for some reason… I’m relieved. I’m so speachless… is there any way I can revive it? I checked my workspace. (Does the fact that I’m using windows 8 help me?)

So you never once saved (saved, tested, etc) the file in that 2 weeks?

EDIT: Or is it a corruption issue?

I think the workspace was reset, its still there. Try using eclipse’s file-import-project then the directory of the project. That or create a file with the exact name as the other one, it should take place of the the old one.

http://i.minus.com/inX0liTTlmvRH.gif

EDIT: Whenever I type, thos boxes appear

I never saved and it might be corruption because The outlet fell out.

What does it look like in here: http://www.onlinehexeditor.com/

Looks like corruption, wiped to invalid characters, don’t know why that would happen though.

http://i.minus.com/jb0gmbcCW3KNz6.png

Not too sure if I was supposed to change any settings, but I think it just shows a bunch of 0s.

Im on my phone now, but after the computer shut off it had a major update so I’m restoring it to before the update. Fingers crossed.

Just odd that the file was wiped to zeros but retained it’s length.

Well hope you learned something. Next time: Safe your files often and use some sort of scm like git.

Still the same. Atleast I showed my parents before this happened :/.

So it’s just spaces?

No, they’re NUL characters: http://www.robelle.com/smugbook/ascii.html

But yeah, use version control of some kind, Git (esp. combined with Github) is quite popular.

This sucks so much, today marked the day I began programming :p.

Are all your files this way?

This is very, very strange. Unless you crashed while actively saving the file I’m puzzled how this could even happen. :o

I only lost the file I had open before my computer was unplugged.

BACKUP! BACKUP! BACKUP!

Although I guess it’s better to learn your lesson now than later with a bigger project.

Yeah, true. Once you get into a really beefy project, 2 weeks of work is nothing in comparison to what you’d lose if you lost a core file to a much larger project.

Anything recoverable from your Windows ‘Previous Versions’ ?

Accidently appreciated, but no, Ironicly when I started the project, Windows would tell me o back up almost every day. I was too lazy to get a blank dvd from the living room.

You can also set up a automatic system that backs up certain folders at certain times, e.g. “Documents” “every 3 hours.”
Version control is still good for code specifically, though, it has other benefits, like being able to easily reverse changes, etc.

_GxC4kKD9qA