#include<fstream>
#include<vector>
using namespace std;
int main()
{
ifstream file;
string inputString;
vector<string> data;
file.open("/path/to/file");
while(file>>inputString) //reads one string at a time
data.push_back(inputString); //add it to data vector
file.close();
}