On Tue, May 21, 2013 at 04:39:35PM +0400, Cyrill Gorcunov wrote: > IOW, I don't like the idea of adding eof flag here instead of plain while(fgets) > cycle. But if I'm mistaken and there is no other way, sure lets use eof flag > instead. Nevermind.