FileMode ENUM

The mode to open a stream from a file.

All Members


TypeNameValue
constantAPPEND0
constantCREATE1
constantOPEN2

Constants


public const FileMode APPEND = 0

If file doesn't exist, create one; if it does, append new contents to the end. File is in WRITE mode.

public const FileMode CREATE = 1

If file doesn't exist, create one; if it does, truncate the contents. File is in WRITE mode.

public const FileMode OPEN = 2

Open an existing file. If it doesn't exist, throw IOException. File is in READ mode.