1#ifndef APE_GLOBALFUNCTIONS_H
2#define APE_GLOBALFUNCTIONS_H
3
4/*************************************************************************************
5Definitions
6*************************************************************************************/
7class CIO;
8
9/*************************************************************************************
10Read / Write from an IO source and return failure if the number of bytes specified
11isn't read or written
12*************************************************************************************/
13int ReadSafe(CIO * pIO, void * pBuffer, int nBytes);
14int WriteSafe(CIO * pIO, void * pBuffer, int nBytes);
15
16/*************************************************************************************
17Checks for the existence of a file
18*************************************************************************************/
19BOOL FileExists(char* pFilename);
20
21#endif // #ifndef APE_GLOBALFUNCTIONS_H
22