[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Truncate an open file to a given size.
Source position: filutilh.inc line 82
function FileTruncate( |
Handle: THandle; |
Size: LongInt |
):Boolean; |
FileTruncatetruncates the file with handle Handleto Sizebytes. The file must have been opened for writing prior to this call. The function returns Trueis successful, Falseotherwise.
For an example, see FileCreate.
On error, the function returns False.
|
Close a file handle. |
|
|
Write data from a buffer to a given filehandle. |
|
|
Create a new file and return a handle to it. |
|
|
Open an existing file and return a filehandle |
|
|
Read data from a filehandle in a buffer. |
|
|
Set the current file position on a file handle. |