How can I read a text file line by line in Qt?
I'm looking for the Qt equivalent to:
std::ifstream infile;
std::string line;
while (std::getline(infile, line))
{
...
}
See Question&Answers more detail:osHow can I read a text file line by line in Qt?
I'm looking for the Qt equivalent to:
std::ifstream infile;
std::string line;
while (std::getline(infile, line))
{
...
}
See Question&Answers more detail:os