Servo Script icon Servo Script Bind scripts to servo moves (V1-V99); triggers on position/speed/accel changes and provides ports, positions and speeds arrays for custom control. Try it →
 

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.