Output File Streams #include using std::ofstream; Insertion or << cout << x; //data flowing from x in to cout; ofstream out; out.open( "myOutputfile.txt" );//open a file for writing I/O Manipulation Library #include setw - sets how many characters wide the output should be you must use this each time you want to set the width setprecision - sets how many decimal places a decimal number should have