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


Writes the contents of a buffer to the current position in a file within a single file system.

function FileWrite(Handle: Integer; const Buffer; Count: Integer): Integer;

FileWrite writes Count bytes to the file given by Handle from the buffer specified by Buffer. Handle is a file handle returned by the FileOpen or FileCreate method.

The return value is the number of bytes actually written, or -1 if an error occurred.

Use of the file handlers such as FileWrite 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: