summaryrefslogtreecommitdiffstats
path: root/src/util/TextFile.h
blob: 49932fa813a721b9031ab8730f85fe551b7cbbb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * TextFile.h
 *
 *  Created on: 13.02.2010
 *      Author: Zahl
 */

#ifndef TEXTFILE_H_
#define TEXTFILE_H_

#include <QtCore/QFile>
#include <QtCore/QTextStream>

class TextFile : public QTextStream
{
public:
    TextFile(QString filename);
    virtual ~TextFile();
    bool good();
    bool eof();
protected:
    QFile *_file;
    bool _good;
};

#endif /* TEXTFILE_H_ */