Truncate an open file to a given size.
Source position: filutilh.inc line 278
function FileTruncate( |
Handle: THandle; |
Size: Int64 |
):Boolean; |
FileTruncate truncates the file with handle Handle to Size bytes. The file must have been opened for writing prior to this call. The function returns True is successful, False otherwise.
For an example, see FileCreate.
On error, the function returns False.
|
Close a file handle. |
|
|
Write data from a buffer to a given file handle. |
|
|
Create a new file and return a handle to it. |
|
|
Open an existing file and return a file handle. |
|
|
Read data from a file handle in a buffer. |
|
|
Set the current file position on a file handle. |