// open file and read space separated values and insert into data store void ReadInputFile(const std::string& datafile) { std::ifstream file(datafile); DataReader row; DataStore& dataStore = DataStore::GetInstance(); while (file >> row) { try { dataStore.Insert(row.at(0), row.at(1), row.at(2)); } catch(...) { // do nothing on exception but allow rest of data to ingested } } }