Indicates input/output mode. Can be one of three constants: ForReading, ForWriting, or ForAppending.
Member | Value | Description |
---|---|---|
ForAppending | 8 | Open a file and write to the end of the file. |
ForReading | 1 | Open a file for reading only. You can't write to this file. |
ForWriting | 2 | Open a file for writing. If a file with the same name exists, its previous contents are overwritten. |