Advertisement
Denny707

CPP - read all row

Jun 18th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <string>
  4. using namespace std;
  5. int main () {
  6. ifstream rubrica ("Rubrica.txt");
  7. string data;
  8. while ( getline (rubrica,data) ){
  9. cout << data << '\n';
  10. }
  11. rubrica.close();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement