C++ Formatting, File IO and Namespace