fsFileOpen (Function) |
Top Previous Next |
This will open an existing file for reading and writing. The function returns a FILE descriptor (ID) for the file, and it is necessary to verify that the file has been successfully opened with the fsFileStatus function. The data pointer used when reading and writing data will always point at the end of file when opened. It is possible to have 16 files open simultaneously - each with a unique FILE descriptor.
Input: name : STRING Name of the file to open. Both absolute and relative paths are allowed.
Returns: FILE FILE descriptor. Use the fsFileStatus to verify the operation.
Declaration: FUNCTION fsFileOpen : FILE;
Example: ... |