You use FileAccess in conjunction with several file I/O classes.Your must indicate both the enumeration name and the member name separated by a period, as here: file.Open(FileMode.CreateNew, FileAccess.ReadWrite) FileMode is another enumeration in the System.IO class. If you were to switch around these two enumerations in the Open method, the compiler would report an error. |