I am sorry. I am new in C++. I only do C last year. But may I ask what does getline do? Does it read one row at a time? or does it read the whole data in the text file? I am quite confuse about this.
The name getline suggests that it reads line by line from the file. The question is how do you identify the end of a line? Well it is identified by the newline character (ascii 10) which should be present at the end of each row. You can also use fgets. The best way of getting your answer is to write a small test program.
getline reads every character before a delimiter ( which is by default the newline character )
eg:
1 2 3 4
// file is a ifstream, s a string
getline ( file, s ); // reads a line from the file ( up to \n )
getline ( file, s, '\n' ); // same as above
getline ( file, s, ',' ); // reads until it finds a comma