Opens a file in the specified mode.
mode A System.IO.FileMode constant specifying the mode (for example, Open or Append) in which to open the file.
A file opened in the specified mode, with read/write access and unshared.