OpenFileForReading

This function is used to open a file for reading.

Function

Integer OpenFileForReading(fileName: string);

Parameters

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

Return Value

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

Example

var handle = OpenFileForReading("C:\\Data\\ChutesMap.csv");
var line = ReadLine(handle);
// ...
CloseFile(handle);