Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Account a; //STRUCT- just a reminder.
- string a;
- ifstream myfile ("accounts.txt");
- if (myfile.is_open())
- {
- while ( myfile.good() )
- {
- getline (myfile, a);
- cout << a << endl;
- }
- myfile.close();
- }
- ifstream input("accounts.txt");
- if (!input) cout<<"accounts.txt not found"<<endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement