read received data from xbee to file