15 #include "interrogate_datafile.h" 25 idf_output_string(ostream &out,
const string &str,
char whitespace) {
26 out << str.length() << whitespace;
28 out << str << whitespace;
38 idf_input_string(istream &in,
string &str) {
61 idf_output_string(ostream &out,
const char *str,
char whitespace) {
62 if (str == (
const char *)NULL) {
65 out << strlen(str) << whitespace;
67 out << str << whitespace;
78 idf_input_string(istream &in,
const char *&str) {
92 char *readstr =
new char[length + 1];
95 readstr[p] = in.get();