fixed bug: bio_gets returns 0 if there is no data, readlines works correct