File Access Mode « File Directory Stream « C# / CSharp Tutorial

15.9.File Access Mode
15.9.1.FileStream is opened for FileAccess.ReadWrite (default) and FileShare.None (default)
15.9.2.FileStream is opened for FileAccess.Write FileShare.None (default) and is positioned at the end (because of FileMode.Append)
15.9.3.FileStream is opened for FileAccess.ReadWrite FileShare.Read and has had its entire contents truncated (due to FileMode.Truncate)
15.9.4.Use FileStream with StreamWriter to provide a greater degree of control in how you open the file
15.9.5.Creates a file with read-write access that allows others to read
15.9.6.Create FileStream from FileInfo with file mode, file access and file sharing