[c++] Using getline() with file input in C++