line is the name of the std::string variable. You could call the variable whatever you want but the name makes sense because you use it to store the content of a file line. The content of the line variable will change and will be different in each iteration of the loop.