hi :) is there a possible way where in we can combine two rows for an example i have this code:
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ofstream outfile;
outfile.open("1stRow.txt");
for(int i=1;i<10;i++)
outfile<<i<<endl;
outfile.close();
ofstream outfile2;
outfile2.open("2ndRow.txt");
for(int j=2;j<11;j++)
outfile2<<j<<endl;
outfile2.close();
//return 0;
}
Like the output file would be
1,2
2,3
3,4
4,5
5,6
6,7
7,8
8,9
9,10
in another file :), its like you concatenate two strings...
thank you in advance guys :)