What does getline do?

I am wrinting just part of the code
int main()
{
std::vector<std::vector<double>> v;
std::ifstream in( "pizd.dat" );
std::string record;

while ( std::getline( in, record ) )

So ifstream reads from the file the whole content.What is getline doing?
std::ifstream is a stream. Nothing is read from the file unless you use the stream's input methods. One of those methods is calling std::getline on the stream.
Topic archived. No new replies allowed.