istream& rgetline

(istream &IFile, string &sLine,
  char cDelimiter='\n')

Read text file backward.

Documentation

Read text file backward. This function reads a line from the file IFile and stores the line in sLine. cDelimiter defaults to a carriage return character and can be changed to use an other line delimiter. The different to the STL-function getline() is that this function is reading backward. If you open a file and seek to the end of the file you can use this function to read line by line from the end to the beginning.

Alphabetic index



This page was generated with the help of DOC++.