Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Very weird, i had opened notepad ++ and working on my CSS codes for my website, suddenly my little niece unplugged the computer, when i re-start the computer and opened again the same CSS codes file in notepad ++, so all i am seeing is "NULL NULL NULL NULL NULL NULL NULL" there is no codes, all lost.

I opened the same CSS codes file in other editors and its all empty no codes..

is there a way to fix it, because it was my hard work. and what can be the cause?

Thank you.

share|improve this question
    
Congratulations! You have just learned to Backup Your Work! –  Tadeusz A. Kadłubowski Mar 7 '10 at 10:23
1  
don't feel bad, none of us backed up before we lost something important :( –  Phoshi Mar 7 '10 at 10:37
    
Time to learn SubVersion or git? –  Johan Apr 18 '10 at 11:43
add comment

2 Answers

If the power was lost while you were writing to the disk, it may well have only partially written the file - destroying the contents. I hope you have a backup, unfortunately. As it's a website, has it ever been online? You might strike lucky searching your browser's cache. (My FF cache is in C:\Users[UserName]\AppData\Local\Mozilla\Firefox\Profiles[Profile String].default\Cache).

You're seeing the fancy [NULL] codes because np++ tries to show unprintable characters.

(and for what it's worth, I totally feel your pain. My little sister once accidentally wiped an entire OS, back in the day we booted from floppies :()

share|improve this answer
add comment

most likely something went bad when saving, and its messed up. I'd prolly give recurva or some other file recovery software a shot, and hope for the best. Failing which... in future, you might want to consider using dropbox - it has some version control, and would backup your work as you save it

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.