Getting array an integer array from Arduino Due into a text file.

Hello,

I am very new to arduino boards. I am using a due board for a project. My question is: How to send an array of information from an arduino to a pc via a Xigbee wireless shield.
I have an array of integers being held by a program inside the arduino board as such:

int sensorState[];

I also have an Arduino Due Xigbee shield that I am trying to incorporate. I am finding it challenging get sensorState retrieved from the arduino into a pc. I would like for the the pc to save the values of the array into a text file, so those values can be accessed later by another program but this program wont be in the arduinos.

Any help is appreciated.

Thanks