#include <fstream>
#include <string>
#include <vector>
using namespace std;
void ReadTSV(const char* filename)
{
using namespace std;
ifstream infile(filename);
if (!infile) {
cout << "unable to load file" << endl;
}
string str;
vector<vector<string> > vvStr;
vector<string> vStr;
int pos1, pos2;
while (getline(infile, str))
{
pos1 = 0;
while((pos2 = str.find('\t'))!= string::npos)
{
vStr.push_back(str.substr(pos1, pos2));
pos1 = pos2++;
}
vStr.push_back(str.substr(pos1, string::npos));
vvStr.push_back(vStr);
}
}