say I have a file:
how do I empty the first empty line and go to the next line? I tried to do strcmp(line, "\n") == 0, but it doesn't work.. where line is the first line read?Code:_____________(empty line here) empty :
what should I do?
say I have a file:
how do I empty the first empty line and go to the next line? I tried to do strcmp(line, "\n") == 0, but it doesn't work.. where line is the first line read?Code:_____________(empty line here) empty :
what should I do?
try using isspace() to skip over whitespace
straight off the heap
Did you try strcmp(line,'\0') ?
The first thing I try would be what u tried , but if it did not work maybe it could work. The func he mentioned works .