Changeset 274


Ignore:
Timestamp:
Apr 14, 2005, 6:43:35 PM (16 years ago)
Author:
Peter
Message:

modified read functions so they can read after the last newline to end of file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/stl_utility.cc

    r270 r274  
    108108      std::istringstream line(s);
    109109      std::string tmp_string;
    110       while (line >> tmp_string) {
    111         if(!is.good()) {
    112           std::cerr << "error reading data file!" << std::endl;
    113           exit(1);
    114         }
     110      while (line >> tmp_string)
    115111        vec.push_back(tmp_string);
    116       }
    117112      return true;
    118113    }
Note: See TracChangeset for help on using the changeset viewer.