OpenFileForWriting

This function is used to open a file for writing.

Function

Integer OpenFileForWriting(fileName: string);

Parameters

Name Type Description
fileName String the full name of the file to open for writing.

Return Value

Handle to the file. Used to close it using function ‘CloseFile’

Example

var handle = OpenFileForWriting("C:\\Data\\ChutesMap.csv");
// Boolean type: Flush file after writing the line. Default = false (for compatibility)
WriteLine(handle,"ABS01",true);
// ...
CloseFile(handle);