scummvm/tools/skycpt/TextFile.h
2005-10-18 01:30:26 +00:00

22 lines
353 B
C++

#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