0
Hey can anyone tell me how to read only 4 letter word in a text file?
2 Answers
+ 2
ifstream file("text.txt");
vector<string> arr;
string temp;
while(temp << temp)
{
if(temp.size() == 4)
arr.push_back(temp);
}
0
thanks âșâș