Hey Guys. I need your help. Can someone please tell me the code to write data(Double type e.g 12345.67891) in text file like pattern given below. Remember to put tab between each column.
-----------------------------------------------------
Column1 Column2 Column3
Value 1 Value 2 Value 3
Value 4 Value 5 Value 6
Value 7 Value 8 Value 9
-----------------------------------------------------
& Also how to read data from this file.
Sorry for bad english writing.
To insert tabs, just use the escape character '\t':
cout << "TA\t" << 'B' << '\n';
As already has been said, show some code, where your problem exists.
Maybe what your "text format" currently looks like and what you want it to look like