[Flags] |
FileStream s2 = new FileStream(name, FileMode.Open, FileAccess.Read, FileShare.Read);
| Read | Read access to the file. Data can be read from the file. Combine with Write for read/write access. |
| ReadWrite | Read and write access to the file. Data can be written to and read from the file. |
| Write | Write access to the file. Data can be written to the file. Combine with Read for read/write access. |
Hierarchy: