All code for the labs MUST still follow the Style Guide for CS120. The tablen program must be run on your files, as well.
Normally, output (e.g. cout) sends its output to the screen. To send it to a file instead, use the greater-than (>) symbol:
Any output from myprogram will go to a file named out.txt and you will see nothing on the screen.myprogram > out.txt
Normally, input (e.g. cin) is read from the keyboard. To have the program read input from a file instead, use the less-than (<) symbol:
All input to myprogram is read from in.txt, and the keyboard is ignored. Also, none of the characters that are in the file will show on the screen.myprogram < in.txt
Optional Extra Credit Lab: