deleting text files permanently

Question

is there a way to delete a text file via Delphi 5 so that the file could not be recovered in the Windows recycle bin???

Answer

The function DeleteFile deletes a file without first making a "backup" in Windows' recycle bin. That file can not be recovered from the recycle bin, because it never was in there :)

Note that this holds true for all types of files, not only for text files.

Source code example:

DeleteFile('c:\test\testfile.txt');