[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Write data from a buffer to a given filehandle.
Source position: filutilh.inc line 78
function FileWrite( |
Handle: THandle; |
const Buffer; |
Count: LongInt |
):LongInt; |
FileWritewrites Countbytes from Bufferto the file with handle Handle. Prior to this call, the file must have been opened for writing. Buffermust be at least Countbytes large, or a memory access error may occur.
The function returns the number of bytes written, or -1 in case of an error.
For an example, see FileCreate.
In case of error, -1 is returned.
|
Close a file handle. |
|
|
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. |
|
|
Truncate an open file to a given size. |
|
|
Set the current file position on a file handle. |