diff options
Diffstat (limited to 'tools/skycpt/TextFile.h')
-rw-r--r-- | tools/skycpt/TextFile.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/skycpt/TextFile.h b/tools/skycpt/TextFile.h new file mode 100644 index 0000000000..d2ea1b5a47 --- /dev/null +++ b/tools/skycpt/TextFile.h @@ -0,0 +1,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
\ No newline at end of file |