-
Hi,
Can anyone explain to me how to securly delete a file using VB codes?
Also I don't know much about writing to a file in VB, but what I want to know is how to overwrite the content of a file BIT by BIT.
an example would be greatly appreciated.
:) Thanks :)
-
Write all blanks!
Open it for output, write all blanks, then delete. Almost guaranteed!
------
Open "MyFile.txt" for output as #1
For I = 1 to LOF(1)
Print #1, " " '(a space)
Next
Close
Kill "MyFile.txt"
------
If anyone could un-delete your file, will find only empty spaces.
HTH! :)
P.S. Replace MyFile.txt with the actual name of your file, complete with path, directories etc.
Edited by Juan Carlos Rey on 03-12-2000 at 08:13 PM