readfromfile and hw a