Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. int main(){
  2. char name[50];
  3.  
  4. cin.getline(name, 50);
  5.  
  6. ifstream stream;
  7. stream.open(name);
  8.  
  9. while(!stream.is_open()){
  10. cout << "WAITING";
  11. }
  12.  
  13. char lines[4000] ; //that's high because i firstly supposed it was a index problem
  14. stream >> lines;
  15. while(!stream.eof()){
  16. cout << lines << "n";
  17. stream >> lines;
  18. }
  19.  
  20. return 0
  21. }
Add Comment
Please, Sign In to add comment