usingnamespace std;
int main()
{
vector<string> MyVex;
string Blue = " Goodbye";
fstream LoadV("MatchKnowledge.txt",ios::in);
int counter=0;
MyVex.push_back("");
while(getline(LoadV,MyVex[counter]))
{
if( MyVex[counter] == Blue)
{
// do something
MyVex.push_back("");
++counter;//Possibly keep the data.
}
elseif ( MyVex[counter] != Blue)
{
// move to next line in txt file How would one do this?
}
}
LoadV.close();
//system("pause");//I don't have that command
return 0;
}