How to add a column of data to a .txt file?
Hello everyone,
Basically, I have an ASCII file or .txt file with data like this:
Col1 Col2 Col3....
5 3
b 2
6 1
7 0
PS: Sorry, the forum won't display the correct format of the column/line arrangement I have. But they are separate columns with the data under them.
I want to write data to it in the form of a new column... for example in Col3. I already have my arrays and stuff, it's just a matter of what function/code I need that will help me to do that in an orderly way (data to respective line). I'm a novice in C++ so please help if you know useful functions and use examples please!! :D Thank you.