|
-
Dec 10th, 1999, 07:11 AM
#7
Guru
Actually when you kill a file it goes to the (wrong) end of the hard-drive, after the terminator. How can I explain this...
Ok, take a C++ string.
Set it to:
"ABC\0DEF"
Whenever you want to read it, you get "ABC" - because the "DEF" is after the null-terminating character.
Same with the hard-drive...
Somewhere there's some terminator. When you kill a file, the file's contents are dumped after this terminator. Whenever you read your hard-drive, the system reads up to the terminator and stops there, as if whatever is behind it doesn't exist.
Utilities like the Norton thing (I forget its name...) read past the terminator, and find:
Rest In Peace
Some-Document-I-Really-Need-But-Deleted-By-Mistake
Last words: Are you sure you want to delete this document?
The utility brings all this data to behind the terminator and suddenly the document starts living again... The End
(How to do this in VB? Who knows?)
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
AIM: RYoni69
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|