Closing files

As soon as you complete your read/write operations, use the Close statement to close the file. If you modified the file, the Close statement also writes modifications to disk.

You must close the file before you can open it again. If you want to change access mode or operation (from read to write, for example), you must also close the file, then open it again.