Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption
Reads a specified number of bytes from a file within a single file system.
function FileRead(Handle: Integer; var Buffer; Count: Integer): Integer;
FileRead reads Count bytes from the file specified by Handle into the buffer. The Count parameter indicates the size, in bytes, of the buffer. The function result is the actual number of bytes read, which may be less than Count. The Handle that is passed to FileRead must be opened with FileOpen or FileCreate.
Use of the file handlers such as FileRead is not encouraged. These are low-level file access routines. For normal file operations use TSFSFileStream instead.