#include <iostream>
#include <fstream>
#include <vector>
#include <string>
int main(int argc, charconst *argv[])
{
usingnamespace std;
std::vector<string> names;
std::vector<int> percentages;
string myfile, line;
cout << "filename: ";
cin >> myfile;
ifstream file (myfile + ".txt");
if (file.is_open())
{
while(getline(file, line)){
names.push_back(line);
}
/*
This is where I want to read and pushback integers to the
percentages vector, from the same textfile as names.
*/
}
else{
cout << "No such file exists" << endl;
}
for(string s : names){
cout << s << endl;
}
return 0;
}