ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

isFileOpenForReading

File.isFileOpenForReading(filename)

Parameters

filename Path of file to check if open for reading.

Returns

True if file is open for reading. False otherwise.

Description

Checks if the file at filename is open for reading or not. If a read function has been called on the file this will return true. If the file has not been opened for reading, or the file is closed using the readClose funciton then this will return false. A file will remain open for reading even after the script finishes executing unless the file is closed using the readClose function.