mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 20:55:19 +00:00
b36677af71
svn-id: r19142
22 lines
353 B
C++
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
|