ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

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.