use (*File).Seek instead of opening the file twice