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


Creates a new file within a single file system.

function FileCreate(const FileName: string; Password: String = ''; Question: String = ''; Answer: String = ''): Integer;

FileCreate creates a new file with the specified name within a single file system.

The Password parameter value different from default blank string indicates that the data is encrypted by this password. This parameter is required to create an encrypted compressed file or to open an existing encrypted file. If the encrypted file is open and the Password doesn't match the password that was used to encrypt the file then Create raises an exception

The Question parameter indicates a question that may be asked if a user forgot his / her password to recover the password.

The Answer parameter indicates an answer that must be given by a user to recover his/her forgotten password.

If the return value is positive, the function was successful and the value is the file handle of the new file. A return value of -1 indicates that an error occurred.

Use of the file handlers such as FileCreate is not encouraged. For normal file operations use TSFSFileStream instead.

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