Opens the file with the given name, access, sharing strategy and flags.


- name (String)
- The name of the file to open.
- mode (FileMode)
- The opening mode.
- access (FileAccess)
- The access mode.
- share (FileShare)
- The sharing strategy.
- flags (FileFlags)
- The flags.

The file.