Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <iostream>
- #include <string>
- int main()
- {
- using namespace std;
- ifstream inf("userDB.dat");
- if (!inf)
- {
- cerr << "Cannot open userDB" << endl;
- exit (1);
- }
- while (inf)
- {
- std::string strInput;
- inf >> strInput;
- cout << strInput << endl;
- }
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement