Exporting Files

Is there any way to export data from a vexcode program into a file (like an array into csv file)? If so, how would you do so and what would that code look like?

Please, see these related topics for examples of saving files to SD Card from the program running on V5 brain:

The last example is for PROS, not VEXcode, but it has some useful information.