while(readline) loop