Changeset 2795 in Sophya for trunk/SophyaLib/TArray/utilarr.cc
- Timestamp:
- Jun 3, 2005, 4:51:28 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/TArray/utilarr.cc
r2752 r2795 281 281 nbadtot = nbad = 0; 282 282 while (!is.eof()) { 283 is.clear(); 284 is.getline(buff, 256); 285 // cout << " DBG : buff=" << buff << " :state=" << is.rdstate() << endl; 286 line += buff; nel = 0; 287 if (is.good()) { 283 /* Reza, Juin 2005 : Remplace par getline(istream, string) - plus sur 284 is.clear(); 285 is.getline(buff, 256); line += buff; nel = 0; */ 286 line = ""; 287 getline(is, line); 288 if (is.good() || is.eof()) { 288 289 if ((line.length() > 0) && (line[0]!=clm)) { 289 290 nel = Append(line, nbad, sep); … … 293 294 nbadtot += nbad; 294 295 } 295 // cout << " Decoding line = " << line << " Nel= " << nel << endl;296 line = "";297 296 } 298 297 } 298 /* Reza, Juin 2005 : plus necessaire 299 299 if ((line.length() > 0) && (line[0]!=clm)) { 300 300 nel = Append(line, nbad, sep); 301 // cout << " Decoding Eline = " << line << " Nel= " << nel << endl; 302 if (nel > 0) { 303 nr++; n += nel; 304 } 305 nbadtot += nbad; 306 line = ""; 307 } 301 if (nel > 0) { nr++; n += nel; } 302 nbadtot += nbad; line = ""; } 303 */ 308 304 if (nbadtot > 0) 309 305 cout << "EnumeratedSequence::FillFromFile()/Warning " << nbadtot
Note:
See TracChangeset
for help on using the changeset viewer.