The following thread describes a couple ways to skin the cat.
http://cboard.cprogramming.com/showthread.php?t=21714
I started and got my program working using a simple logfile...
But now I want to align the columns of my output data, etc.Code:cout << "Log filename: ? "; cin >> logName; // could put this in the main() and then echo to the logfile ofstream fout(logName); // open for writing fout << logName << endl << endl; //include date and time next while(1) { fout << lots of data ...}
How do I go about getting the fprintf formatting in std:: ofstream?
I can't find the magic url with what I'm looking for.
Thanks