This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

33
Common/StdInStream.h Executable file
View File

@@ -0,0 +1,33 @@
// Common/StdInStream.h
#pragma once
#ifndef __COMMON_STDINSTREAM_H
#define __COMMON_STDINSTREAM_H
#include <stdio.h>
#include "String.h"
#include "Types.h"
class CStdInStream
{
bool _streamIsOpen;
FILE *_stream;
public:
CStdInStream(): _streamIsOpen(false) {};
CStdInStream(FILE *stream): _streamIsOpen(false), _stream(stream) {};
~CStdInStream();
bool Open(LPCTSTR fileName);
bool Close();
AString ScanStringUntilNewLine();
void ReadToString(AString &resultString);
bool Eof();
int GetChar();
};
extern CStdInStream g_StdIn;
#endif