Hi,
i am writing a piece of code where i modify a file (add and remove entire lines).
The problem is that i am unable to grab the last empty line. The current code is :
Qt Code:
  1. QStringList file_text;
  2. while (!in.atEnd()) {
  3. QString line = in.readLine();
  4. file_text.push_back(line);
  5. }
  6. file.close();
  7. //processing the lines and then save
To copy to clipboard, switch view to plain text mode 

is there any way to get the last empty line ? (or at least to detect if there is one)