63 #ifndef support_IOUtil_hpp 64 #define support_IOUtil_hpp 103 OpenIFile(std::ifstream& fs,
const char* filenm);
106 OpenOFile(std::ofstream& fs,
const char* filenm);
115 Get(std::istream& is,
char end =
'\n');
118 GetLine(std::istream& is,
char end =
'\n');
123 Skip(std::istream& is,
const char* s);
126 Skip(std::istream& is,
const std::string& s)
127 {
return Skip(is, s.c_str()); }
133 #endif // support_IOUtil_hpp void CloseStream(std::istream *s)
std::istream * OpenIStream(const char *filenm)
std::ostream * OpenOStream(const char *filenm)
void OpenOFile(std::ofstream &fs, const char *filenm)
bool Skip(std::istream &is, const char *s)
std::string GetLine(std::istream &is, char end)
std::string Get(std::istream &is, char end)
void CloseFile(std::fstream &fs)
void OpenIFile(std::ifstream &fs, const char *filenm)