vector stock code example
Example: stock a file in a vector cpp
#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();
}