FileInfo.Open Method (FileMode, FileAccess)
Opens a file in the specified mode with read, write, or read/write access.
Assembly: mscorlib (in mscorlib.dll)
A FileMode constant specifying the mode (for example, Open or Append) in which to open the file.
The caller does not have the required permission.
The file is not found.
path is read-only or is a directory.
The specified path is invalid, such as being on an unmapped drive.
The file is already open.
Available since 10
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0