I have a txt file with numbers like 541399.531 261032.266 16.660 (first line) 541400.288 261032.284 16.642 (2nd line)........hundred of points. i want to convert this file i
This is what you may want to do.
Some sample code (untested):
ifstream ifile("file1.txt");
ofstream ofile("file2.txt", ios::binary);
string line;
while(!ifile.eof()) {
getline(ifile, line);
ofile.write(line.c_str(), line.length);
}
HTH,
Sriram