kstars
KSFileReader Class Reference
This class will read an entire file into a QStringList, where each item in the list is a line in the file. More...
#include <ksfilereader.h>
Inheritance diagram for KSFileReader:

Public Member Functions | |
bool | hasMoreLines () |
KSFileReader (QFile &file) | |
QString & | readLine () |
bool | setLine (int i) |
~KSFileReader () |
Detailed Description
This class will read an entire file into a QStringList, where each item in the list is a line in the file.It can then access each line in the list very quickly.
- Version:
- 1.0
Definition at line 35 of file ksfilereader.h.
Constructor & Destructor Documentation
KSFileReader::KSFileReader | ( | QFile & | file | ) |
Constructor.
Read an entire file into a QStringList object. file
the file to be read
Definition at line 23 of file ksfilereader.cpp.
KSFileReader::~KSFileReader | ( | ) |
Member Function Documentation
bool KSFileReader::hasMoreLines | ( | ) |
- Returns:
- TRUE if we are not yet at the end of the file.
Definition at line 40 of file ksfilereader.cpp.
QString & KSFileReader::readLine | ( | ) |
Read a line from the file, and increment the "current line" counter.
- Returns:
- the line that we read, as a QString.
Definition at line 44 of file ksfilereader.cpp.
bool KSFileReader::setLine | ( | int | i | ) |
Go to a specific line in the file.
i
the line number to skip to.
Definition at line 52 of file ksfilereader.cpp.
The documentation for this class was generated from the following files: