PDA

View Full Version : Reading text file


Prathvi
06-05-2008, 09:21 AM
I have a text file. The following code is used to read the file.

char line[80];
while(condition)
{
ifFile >> line;
...
}

Whenever there is a blank line this code skips that line and reads next one. How to read the blank line?

Thanks in advance

Rudegar
06-05-2008, 09:49 AM
you really should ask all these coding related questions in the developing and hacking forum as there are not himalaya spc
so you are more likely to get help fast from developers there