first attempt at file input/output in C++