Sign up ×
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-started the computer and opened again the same CSS file in Notepad++, all I am seeing is "NULL NULL NULL NULL NULL NULL NULL". There is no code, all is lost.

I opened the same CSS file in other editors and it's all empty, no code.

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

share|improve this question
Congratulations! You have just learned to Backup Your Work! – Tadeusz A. Kadłubowski Mar 7 '10 at 10:23
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

2 Answers 2

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

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

Your Answer


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.