Well, my system crashed as I was saving a text file. When I reopened it, the data was unreadable (shows up as a bunch of ascii NULL characters) I'm guessing that there was a bit or two missing at the beginning of the file or something, and that most of the data is still intact if I just shifted things into the right place. I hope.

Is there any way to remedy this?

(I am running Windows Vista)

link|improve this question

50% accept rate
"Shifting" at bit level doesn't happen -- and even if it did, you wouldn't get a bunch of NULs where you had text. – grawity Dec 19 '10 at 12:22
@grawity what usually causes ASCII NUL characters then? – Justin L. Dec 19 '10 at 22:10
feedback

2 Answers

The text data might be present in sectors no longer associated with the filename. If your operating system is Windows, you could try running chkdsk.

If the data is valuable you should stop using the system, boot from a rescue CD and make a backup before using the rescue CD to attempt to retrieve the data. Otherwise any traces of the data that are in unallocated sectors will soon become irretrievably overwritten.

The classic answer is to restore from last night's backups and re-do any changes.

link|improve this answer
feedback

If you've saved a version of that text file earlier, then Previous Versions may be what you're looking for. Right-click the corrupted file and select Properties, then go to the Previous Versions tab. (Vista or newer on NTFS only.)

Even if that doesn't turn up anything, you can open your disk in a sector editor (booted from a CD or USB) and search the raw contents of your HDD for text that you know had been present in the file. You may get lucky.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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