#ifndef __C_WRITE_FILE_H_INCLUDED__
#define __C_WRITE_FILE_H_INCLUDED__
#include <stdio.h>
#include "IWriteFile.h"
#include "irrString.h"
namespace irr
{
namespace io
{
class CWriteFile : public IWriteFile
{
public:
CWriteFile(const io::path& fileName, bool append);
virtual ~CWriteFile();
virtual s32 write(const void* buffer, u32 sizeToWrite);
virtual bool seek(long finalPos, bool relativeMovement = false);
virtual long getPos() const;
virtual const io::path& getFileName() const;
bool isOpen() const;
private:
void openFile(bool append);
io::path Filename;
FILE* File;
long FileSize;
};
}
}
#endif