00001 /* @file psSlurp.h 00002 * @brief read complete files into strings 00003 * 00004 * @author JH 00005 * @version $Revision: 1.5 $ $Name: $ 00006 * @date $Date: 2007/01/23 22:47:23 $ 00007 */ 00008 00009 #ifndef PS_SLURP_H 00010 #define PS_SLURP_H 00011 00012 /// @addtogroup FileIO Input/Output 00013 /// @{ 00014 00015 // Read ("slurp") a file (specified by file descriptor) 00016 // and return a string containing the entire file. 00017 psString psSlurpFD(int fd // File descriptor to read 00018 ); 00019 00020 // Read ("slurp") a file (specified by file stream) 00021 // and return a string containing the entire file. 00022 psString psSlurpFile(FILE *stream // File stream to read 00023 ); 00024 00025 /// @} 00026 #endif
1.5.1