How To: Read and Write ASCII and Binary Files in C++