24 lines
500 B
C++
24 lines
500 B
C++
#ifndef CCFIleInStream_H
|
|
#define CCFIleInStream_H
|
|
#include "CC.h"
|
|
|
|
using CCInStream = std::ifstream;
|
|
class CCFileInStream:public CCInStream
|
|
{
|
|
public:
|
|
using std::ifstream::basic_ifstream;
|
|
|
|
public:
|
|
static CTL::String ReadFileDataAll(const CTL::String& filename);
|
|
static CCVector<char> ReadBinaryFile(const CTL::String& filename);
|
|
static bool ReadData(CCFileInStream &file,CTL::String &line);
|
|
bool ReadData(CTL::ByteArray &data,size_t size = 1024);
|
|
private:
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
#endif
|