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:<br /> file.Open(FileMode.CreateNew, FileAccess.ReadWrite)<br />FileMode is another enumeration in the System.IO class. If you were to <font color=#FF0000><b><U>switch around </U></b></font>these two enumerations in the Open method, the compiler would report an error. |
|