Read packets from a file handler