#1 check end of file and done in fromHandle and fromHandleLn