Write bytes of data to a file
Source position: amigados.pas line 1623
function DOSWrite( |
file_: LongInt; |
buffer: POINTER; |
length: LongInt |
):LongInt; |
file_ |
|
File handle |
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 |
|
|