cpp file for opening text file and printing to stdout