FileInfo.Open Method (FileMode, FileAccess)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Opens a file in the specified mode with read, write, or read/write access.
Assembly: mscorlib (in mscorlib.dll)
- Type: System.IO.FileMode
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.
path is empty or contains only white spaces.
The file is not found.
One or more arguments is null.
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.