The AppRiver dev team is studying for MSTCS 70-536. These are some observations and notes from those classes.
FileStream v/s StreamReader & StreamWriter
- FS supports random access.
- FS returns byte arrays.
- SR/SW use strings.
- If SR/SW is created with a file path instead of a stream, a FS is implicitly created.
When to use them
If you are working with textual information, use a StreamReader/Writer. Use the FileStream for binary data.
If you need to eek out the maximum performance, the FileStream, StreamReader, and StreamWriter all offer optimiztion parameters, but generally you will not need them.