Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- char name[50];
- cin.getline(name, 50);
- ifstream stream;
- stream.open(name);
- while(!stream.is_open()){
- cout << "WAITING";
- }
- char lines[4000] ; //that's high because i firstly supposed it was a index problem
- stream >> lines;
- while(!stream.eof()){
- cout << lines << "n";
- stream >> lines;
- }
- return 0
- }
Add Comment
Please, Sign In to add comment