Here is my code:
in.open( "btnbad.asc", ios::in, filebuf::sh_read );
out.open( "btnbad.txt", ios::out, filebuf::sh_write );
while( in.eof() == false )
// Code that reads in the line of records
// Writes to output file
out.write( sBuff.c_str(), lstrlen( sBuff.c_str() ));
I thinkg its in.read(...) but not quite sure how to use it. I dont want to read a character at a time but instead a line of records which then goes to the next line, etc. Do I also need something to move the pointer to the next record on the next row?