59 const std::string& rFileName)
63 std::vector<std::string> raw_data;
64 std::ifstream data_file(rFileName.c_str());
68 if (!data_file.is_open())
70 EXCEPTION(
"Could not open data file " + rFileName);
75 getline(data_file, raw_line);
82 long hash_location = raw_line.find(
'#', 0);
83 if (hash_location >= 0)
85 raw_line = raw_line.substr(0, hash_location);
89 long not_blank_location = raw_line.find_first_not_of(
" \t", 0);
90 if (not_blank_location >= 0)
92 raw_data.push_back(raw_line);
96 getline(data_file, raw_line);