zStatus zFireSync_WriteFile(zFireSync fireSync, const zChar* fileName, const zByte* data, zUIntPtr size, zBool commit);
|
Parameters |
Description |
|
zFireSync fireSync |
zFireSync object. |
|
const zChar* fileName |
Name of the file to save. |
|
const zByte* data |
Contents of the file. |
|
zUIntPtr size |
Size of the file, in bytes. |
|
zBool commit |
If true, the file will be committed to non-volatile storage. |
Saves the given file on FireSync server.
This function uses the Control channel. If a file with the same name already exists, the file will be overwritten.
If the commit parameter is false, then the file may or may not be committed to storage. Files that are not committed to storage will be lost when the server is re-powered. The commit parameter is typically set to false when writing temporary files to the server; this can reduce flash/disk wear when used with server devices that support volatile files.
zFireSync.h