#ifdef IO_USE_STD_LIB_FILE_IO
#ifndef APE_STDLIBFILEIO_H
#define APE_STDLIBFILEIO_H
#include "IO.h"
#include "NoWindows.h"
class CStdLibFileIO : public CIO
{
public:
CStdLibFileIO();
~CStdLibFileIO();
int Open(LPCTSTR pName);
int Close();
int Read(void * pBuffer, unsigned int nBytesToRead, unsigned int * pBytesRead);
int Write(const void * pBuffer, unsigned int nBytesToWrite, unsigned int * pBytesWritten);
int Seek(int nDistance, unsigned int nMoveMode);
int SetEOF();
int Create(const char* pName);
int Delete();
int GetPosition();
int GetSize();
int GetName(char* pBuffer);
int GetHandle();
private:
char m_cFileName[MAX_PATH];
BOOL m_bReadOnly;
FILE * m_pFile;
};
#endif
#endif