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