Version

FileMode Enumeration

How the file is to be opened
Syntax
public enum FileMode : System.Enum 
Members
MemberDescription
AppendOpens an existing file, or creates a new one, and positions the file stream to the end of the file.
CreateCreate a new file. If the file already exists it will be overwritten.
CreateNewCreate a new file. If the file already exists an exception is thrown.
OpenOpens an existing file. If the file is not found an exception will be thrown.
OpenOrCreateOpens an existing file, or creates a new one.
TruncateOpens an existing file and sets it to a 0 length
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also