How is it possible to store the related data of a program C++ into an external file (like as .txt) and retrieve it?
I want to write c++ program that can contain data members " id and phone"
avoiding formats in above class, purpose is to store data already in txt file with different id and phone numbers and it is to be retrieved by matching id number to txt file and viewing its related phone number.
private: int id,phone;
cout<<"Enter your ID: ";
cout<<"Your Phone number is "<< phone;
How it is possible?