| vinaynaikwad (24) | |||
|
Hi, I have the below piece of code which reads a file line by line and prints the contents to another file.
The problem is the control is not coming out of this loop at all. And also it is not printing any contents of the file too. It just keeps printing empty lines. Any inputs on this?? Please help. | |||
|
|
|||
| Aramil of Elixia (772) | |
| use while(getline(ifstream, string)) | |
|
|
|
| vinaynaikwad (24) | |
|
Hi Aramil of Elixia, Thanks for your time on this. I would be grateful if you can explain what is the problem with my implementation.. Thanks in advance. | |
|
|
|
| Aramil of Elixia (772) | |
| i dont know what it is but i was told it was better to use getline(inActive_pmc, string) as the while loop condition because it keeps getting the next line | |
|
|
|