Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ifstream file1("players.txt"); //ofstream is for writing into a file and ifstream is for reading from a file.
- int id;
- string name;
- double money;
- while(file1 >> id >> name >> money) //Coming from file
- {
- cout << id << ", " << name << ", " << money << endl;
- }
Add Comment
Please, Sign In to add comment