For an example of creating a file and writing text to a file, see [<topic://cpconwritingtexttofile>]. For an example of reading text from a file, see [<topic://cpconreadingtextfromfile>]. For an example of reading from and writing to a binary file, see [<topic://cpconReadingWritingToNewlyCreatedDataFile>].
A FileAccess parameter is specified in many of the constructors for System.IO.File, System.IO.FileInfo, System.IO.FileStream, and other constructors where it is important to control the kind of access users have to a file.