Opens a specified file and returns a TextStream object that can be used to read from, write to, or append to the file.
| Value | Description |
|---|---|
| ForAppending | Open a file and write to the end of the file. |
| ForReading | Open a file for reading only. You can't write to this file. |
| ForWriting | Open a file for writing. If a file with the same name exists, its previous contents are overwritten. |
| Value | Description |
|---|---|
| TristateFalse | Opens the file as ASCII. |
| TristateMixed | n/a |
| TristateTrue | Opens the file as Unicode. |
| TristateUseDefault | Opens the file using the system default. |