How to check if a file is already open
My question is about the local file system object `File`. I am writing a function that reads the contents of a text file. The function is passed a `File` object as an argument and then reads the content before some other logic.
Before you can read a `File` object it needs to be open. The Adobe JavaScript documentation has the following warning around opening files:
NOTE: Be careful about opening a file more than once. The operating system usually permits you to do so, but if you start writing to the file using two different File objects, you can destroy your data.
So my question is... How do I tell if a File object is already open? There doesn't appear to be a property or method that simply tells me this.
