Write bytes of data to a file
Source position: amigados.pas line 1640
function dosWrite( |
fileh: LongInt; |
buffer: Pointer; |
length: LongInt |
):LongInt; |
buffer |
|
Pointer to a buffer to write to file |
length |
|
Number of bytes to write. The filesystem is advised to try to fulfill the request as good as possible. |
Number of bytes written, -1 for error.
DosWrite() writes bytes of data to the opened file file. length indicates the length of data to be transferred; buffer is a pointer to the buffer. The value returned is the length of information actually written. So, when length is greater than zero, the result is the number of characters written. Errors are indicated by a value of -1.
|
Read bytes of data from a file |
|
|
Set the current position for reading and writing |
|
|
Open a file for input or output |
|
|