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.