23 int main(
int argc,
char *argv[])
27 fprintf(stderr,
"%s infile [outfile]", argv[0]);
31 MyFile.
Open(argv[1],
true);
39 fwrite(Data, 1,
iSize, stdout);
46 OutFile.
Create(argv[2],
false);
bool Close(StdBuf **ppMemory=nullptr)
bool Create(const char *szFileName, bool fCompressed=false, bool fExecutable=false, bool fMemory=false)
bool Write(const void *pBuffer, int iSize)
bool Read(void *pBuffer, size_t iSize) override
bool Open(const char *szFileName, bool fCompressed=false)
int main(int argc, char *argv[])
bool EraseItemSafe(const char *szFilename)