file.isopen — Is the file currently in use?
file.isopen filename
file.isopen
filename
Returns 1 if the file is currently open, otherwise 0.