deleting text files permanently


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???


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: