read last n bytes of a binary fle