JCL Help:ShredFile

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Shreds the contents of the file and then deletes it.


Pascal

 procedure ShredFile(const FileName: string; Times: Integer = 1);


Parameters

Parameters Description
const FileName: string The fully qualified name of the file to shred.
Times: Integer = 1 Number of file overwrites. Defaults to 1.


Description

The ShredFile functions overwrites the contents of the specified file and then deletes the file. This ensures that even if the underlying filesystem does not physically remove the file, its contents are effectively inaccessible.


About

Unit

JclFileUtils


Donator

Pelle F. S. Liljendal


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page