6 if ( fd )
NAMD_bug(
"ofstream_namd::open() called when file is already open");
12 if ( fd )
NAMD_bug(
"ofstream_namd::open() called when file is already open");
18 if ( ! fd )
NAMD_bug(
"ofstream_namd::flush() called when file is not open");
19 const std::string text = str();
20 NAMD_write(fd, text.c_str(), text.size(), fname.c_str());
26 if ( ! fd )
NAMD_bug(
"ofstream_namd::close() called when file is not open");
int NAMD_open_text(const char *fname, int append)
void NAMD_bug(const char *err_msg)
void NAMD_backup_file(const char *filename, const char *extension)
void open(const char *_fname, std::ios_base::openmode _mode=std::ios_base::out)