Hi,
I am writing output to a file and am using ostream. I wanted to format my output and not sure how to do it.
Here is some simple code.
int var1;
int var2;
ofstream out("blah.txt");
out << "Name " << var1 << endl;
out << "NameofAnotherPerson << var2 << endl;
How would i get the output in the file that I write into, to be formatted where var1 and var2 line up like in the same column like a printf statement would do?