A.10 File Open Constants

Type

Value

Description

ForReading

1

Open a file for reading only.

ForWriting

2

Open a file for writing only. You can not read from this file.

ForAppending

8

Open a file and write to the end of the file.

TristateUseDefault

-2

Open the file using the system default.

TristateTrue

-1

Opens the file as Unicode.

TristateFalse

0

Opens the file as ASCII.