00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00028 #ifndef _RTXFILE_H_
00029 #define _RTXFILE_H_
00030
00031 #include "rtxsrc/rtxContext.h"
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00044 EXTERNRT OSBOOL rtxFileExists (const char* filePath);
00045
00050 EXTERNRT time_t rtxFileLastModified( const char* filePath );
00051
00064 EXTERNRT int rtxFileOpen
00065 (FILE** ppFile, const char* filePath, const char* access);
00066
00082 EXTERNRT int rtxFileReadBinary
00083 (OSCTXT* pctxt, const char* filePath, OSOCTET** ppMsgBuf, size_t* pLength);
00084
00100 EXTERNRT int rtxFileReadBinary2
00101 (OSCTXT* pctxt, FILE* pFile, OSOCTET** ppMsgBuf, size_t* pLength);
00102
00118 EXTERNRT int rtxFileReadBinToSysMem
00119 (OSCTXT* pctxt, const char* filePath, OSOCTET** ppMsgBuf, size_t* pLength);
00120
00139 EXTERNRT int rtxFileReadText
00140 (OSCTXT* pctxt, const char* filePath, OSOCTET** ppMsgBuf, size_t* pLength);
00141
00152 EXTERNRT int rtxFileWriteBinary
00153 (const char* filePath, const OSOCTET* pMsgBuf, size_t length);
00154
00166 EXTERNRT int rtxFileWriteText
00167 (const char* filePath, const char* pMsgBuf);
00168
00179 EXTERNRT int rtxFileCopyTextFile
00180 (const char* srcFilePath, const char* destFilePath);
00181
00182 #ifdef __cplusplus
00183 }
00184 #endif
00185
00186 #endif