[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Truncate an open file to a given size.
Source position: filutilh.inc line 82
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 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. |
lazarus-ccr.sourceforge.net |