aboutsummaryrefslogtreecommitdiff
path: root/tools/skycpt/TextFile.h
blob: 093826d0be9c10451fa6fbd122a6c0d062dcef28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __TextFile__
#define __TextFile__

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include "KmpSearch.h"

class TextFile {
public:
	TextFile(char *name);
	~TextFile(void);
	char *giveLine(uint32 num);
	int32 findLine(KmpSearch *kmp, uint32 fromLine = 0);
private:
	void read(FILE *inf);
	char **_lines;
	uint32 _numLines;
};

#endif