So, there I was, working on my program. I stopped working on it for a while but kept Sublime text opened. I went to play some games and stuff.
I’m not really sure when, but eventually I realized that Sublime Text had stopped responding. Pressing the X button wasn’t working, task manager wasn’t working, it was horrible. Eventually, when I wasn’t watching, it closed itself.Then more stuff happened like explorer.exe not responding. Because I had the command prompt still working, I entered “shutdown /r” or something. Maybe it was -r, I don’t remember. A little after, my computer started to restart. But then I realized that my computer takes forever to restart for some reason. So, after waiting about 5 minutes, I powered it off while it was restarting using the power button.
When I turned my computer back on, I opened sublime text. The first thing I noticed was that only 2 of the 5 or 6 files I had opened before were still opened. Those being main.c and main.h. Also, main.c was being viewed in some hex editor mode or something. (picture) That was weird, so I opened main.c in a different hex editor program. I’m not sure what the files normally looks like, but I’m pretty sure it’s messed up. (picture) main.c was the file I was working on before Sublime Text stopped responding last time. Also, going to the file properties says it was last modified yesterday, December 8, 2016, at 10:56:22 PM. Which can’t be true.
And, finally, a link to main.c:
https://drive.google.com/open?id=0B_dtrDoDosSJWHdfazc1MXUxLXc
So, my questions are:
- What happened to my file?
- Why did that happen?
- Can I recover it? ( I didn’t make backups because I’m stupid )
- What can I do to prevent this in the future? (Most important question)