[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Read data from a filehandle in a buffer.
Source position: filutilh.inc line 77
function FileRead( |
Handle: THandle; |
var Buffer; |
Count: LongInt |
):LongInt; |
FileReadreads Countbytes from file-handle Handleand stores them into Buffer. Buffer must be at least Countbytes long. No checking on this is performed, so be careful not to overwrite any memory. Handlemust be the result of a FileOpencall.
The function returns the number of bytes actually read, or -1 on error.
For an example, see FileCreate
On error, -1 is returned.
|
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 |
|
|
Truncate an open file to a given size. |
|
|
Set the current file position on a file handle. |