file to io, cpp printing