print an array to a file from swift playgrounds

Hi All,


I am running an FFT analysis in swift playgrounds and would like to save the array to the resources folder in my playground (or the desktop). I cant seem to figure out how to do it.


Could you please help me with this?


Thanks


Feras A