EXTRYZE include /iostream/ include /fstream/ include /string/ using namespace std; int main() { string s, question, response; ifstream fin; do{ cout << "Who are u: "; getline(cin,s); fin.open("input.txt"); if(!fin.is_open()) cout << "file is not found!\n"; while(!fin.eof()) { getline(fin,question); getline(fin,response); if(question==s) cout << "Response: " << response << endl; } fin.close(); }while(s!="stop"); system("pause"); return 0; } P.S "input.txt" never existed/ EXTRYZE’s tracks EXTRYZE, STS-51L - Void Shelter by EXTRYZE published on 2024-02-16T20:45:49Z EXTRYZE - FORCEFIELD by EXTRYZE published on 2023-04-29T07:05:43Z EXTRYZE - Sigma Decay by EXTRYZE published on 2023-03-07T05:59:33Z EXTRYZE & VINA JAZZ - PHØNK'Z BΔN by EXTRYZE published on 2023-02-07T22:11:51Z ANNIHILATE by EXTRYZE published on 2022-07-12T14:12:16Z CØLLIDE (feat. fuseddisplay) by EXTRYZE published on 2022-07-12T13:48:16Z