Home | Index classes | Index static functions | Index enumerations | Index structure types |
CLASS {File_stream} , BYTES, DESTRUCTORS, NATIVE, TESTED(76) :
Class to work with files via streams.
IMPORT : {Stream} , {File_path} .
BASE CLASS {Stream} .
INT Handle|_of_file_stream_object , READ
A file opened descriptor.
STR Path|_of_file , READ , INIT
Path of the file opened.
{mode_file} Mode|_file_opened , READ , INIT
A mode used to open the file.
|
The size of the stream is the size of the file opened. |
|
The position in the stream is the position in the file opened. |
|
Moving current position in the file. |
|
TRUE, if the current position is out of the file. |
|
Closing the file and the stream. |
|
TRUE, if the file is already closed. It is not possible to do any operations with a closed stream. |
|
Implementing Load_bytes operation for a file stream. Maximum Count bytes are loaded into the buffer Dest (which first is cleared anyway). TRUE is returned if any bytes are loaded. Usually amount of bytes loaded can be smaller then the Count only if the position was near to the end of the file. But actually other reasons are possible. |
|
Implementing Read_bytes operation for a file stream, reading bytes to the fixed array Dest[] and returning amount of bytes which were read. |
|
Implementing Save_bytes operation for a file stream, writing entire fixed array Source[] and returning amount of bytes written. |