Writing a CSV file, or just to memory (RCM4200)

Hi,
I am trying to write a CSV file out of strings that can be downloaded via ethernet later.

1.How do I write individual strings into memory?
2.How do I create a csv file that can be easily downloaded via ethernet?

I hope someone can help or just shoot me some sample code.
Thanks everyone!