File I/O packed from standard C++ Fstream.