1
// StdFile.h: interface for the CStdFile class.
3
//////////////////////////////////////////////////////////////////////
5
Copyright 2001-2005 Anish Mistry. All rights reserved.
7
Note: This file is available under a BSD license. Contact the author
8
at amistry@am-productions.biz
11
#if !defined(AFX_STDFILE_H__44214218_8F1A_4792_8D4D_8147F50E168D__INCLUDED_)
12
#define AFX_STDFILE_H__44214218_8F1A_4792_8D4D_8147F50E168D__INCLUDED_
16
#endif // _MSC_VER > 1000
27
const char DIRECTORY_DELIMITOR = '\\';
29
const char DIRECTORY_DELIMITOR = '/';
30
#define _MAX_PATH 1024
37
int WriteString(const char *pBuffer);
38
char * ReadString(char *pBuffer, int nMaxLen,char cDelim = ' ');
39
unsigned long int GetPos();
40
unsigned long int Seek(unsigned long int pos,ios::seekdir start);
41
unsigned long int GetLength();
42
unsigned long int Write(const char *buffer, unsigned long int bytesToWrite);
43
unsigned long int Read(char *buffer, unsigned long int bytesToRead);
44
const char * GetFilePath();
45
const char * GetFileName();
47
virtual ~CStdFile(void);
48
// static bool Copy(const char *source,const char *dest, bool bOverwrite);
49
static int Rename(const char *source,const char *dest);
50
static int Delete(const char *fileName);
51
virtual bool Open(const char *filename, ios::openmode accessFlags);
52
unsigned long int WriteLine(const char *);
53
unsigned long int ReadLine(char *bufferOut);
57
void GetName(const char *fileString,char *fileBufferOut);
63
#endif // !defined(AFX_STDFILE_H__44214218_8F1A_4792_8D4D_8147F50E168D__INCLUDED_)