CloseFile
Used to close a file after being open for reading or writing.
🔁 Function
void CloseFile(handle: Integer)
⚙️ Parameters
Name | Type | Description |
---|---|---|
handle |
Integer | Handle to the file, value returned by function OpenFileForWriting or OpenFileForReading. |
↩️ Return Value
None
📝 Example
var handle = OpenFileForReading("C:\\Data\\ChutesMap.csv");
var line = ReadLine(handle);
// ...
CloseFile(handle);