50 if(delimiter_position!=string::npos)
53 s=
buffer.substr(0,delimiter_position);
54 string tempBuffer=
buffer.substr(delimiter_position+1);
67 sprintf(numbuf,
"%d",n);
75 n=atoi(numstr.c_str());
82 sprintf(charbuf,
"%c",c);
100 sprintf(numbuf,
"%f",f);
108 f=atof(numstr.c_str());
122 char line_buffer[1024];
123 ifstr.getline(line_buffer,1023);
125 if(ifstr.good() &&
buffer.size()>0 &&
buffer.size()<1023)
130 cerr <<
"Delimiter is " <<
delimiter << endl;
bool Insert(const string &s)
bool FromFile(ifstream &ifstr)
bool ToFile(ofstream &ofstr)