well i'm using while loop:

> 
> while(fgets(pclientRow, 1024 , f) != NULL)
> 
> 
> 

in other classes it works ok, but in one of them, when i'm reading from
file line by line, it won't get out of the loop even when the lines end, i saw that in the debugger.

why is it? and it was working even in that class before and now i dont know why it keep bringing
empty lines untill it's crshing..

any idea?