Single File System: Virtual File System Delphi Library
for Archive / Backup with Transparent Compression and Strong Encryption


TSingleFileSystem.FileRead
TSingleFileSystem
Top 


Reads a specified number of bytes from a file within a single file system.

function FileRead(Handle: Integer; var Buffer; Count: Integer): Integer;

Description
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.

Note:
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.


© 2000-2004 AidAim Software LLC Single File System: Single-file Syste