I want to use getline in order to read data from a text file. The file opens successfully and the program can read the data from the file when I use the following command:
input_file >> c;
but when I use getline:
getline (input_file, number, '>');
there is a compiler error:
no matching function for call to 'getline(std::ifstream, int&, char)'
What am I doing wrong?