![]() ![]() | ||
When you open files with the FileStream class, you can specify the file mode (see the previous topic) and access. The access indicates the way you're going to use the file-to read from, to write to, or both. To indicate the type of file access you want, you use members of the FileAccess enumeration. You can find the members of the FileAccess enumeration in Table 13.10.
Member |
Means |
---|---|
Read |
Gives read access to the file, which means you can read data from the file. |
ReadWrite |
Gives both read and write access to the file, which means you can both read and write to and from a file. |
Write |
Gives write access to the file, which means you can write to the file. |
![]() ![]() | ||