OpenFileForAppending
This function is used to open a file for appending.
Function
Integer OpenFileForAppending(fileName: string);
Parameters
Name | Type | Description |
---|---|---|
fileName | String | the full name of the file to open for appending. |
Return Value
Handle to the file. Used to close it using function ‘CloseFile’
Example
var handle = OpenFileForAppending("C:\\Data\\ChutesMap.csv");
// Boolean type: Flush file after writing the line. Default = false (for compatibility)
WriteLine(handle,"Line 1",true);
WriteLine(handle,"Line 2",true);
// ...
CloseFile(handle);