General::aofil
Details
-
- This message is generated by an attempt to open a file that is already open.
- This message is caused by using OpenWrite or OpenAppend with a file that has already been opened for reading or writing.
- Streams[] gives the list of files that are currently open.
- For most files only one output stream may be open to the file at a time.
- Off[message] switches off the message; On[message] switches it on. For example: Off[General::aofil].
Examples
Basic Examples (1)
An error occurs when OpenWrite is used with a file that is already open:
OpenWrite["TESTFILE"]OpenWrite["TESTFILE"]Close["TESTFILE"]