You can use the FileStream class for reading from or writing to a binary file.
You create an instance of a FileStream object by passing in the path to the file you want to read. The FileStream class has several overloaded constructors which you can use to specify the following options:
Table 18.5 describes these options.
|FileMode – how to open or create this file?|
|FileMode.Append||Opens a file, if it exists, for appending. Moves the file pointer to the end of the existing file, so that the original data ...|