Write data (textfile) from gcs to sd card in pixhawk

i am trying to create text file from gcs which i wish to send to pixhawk. is there any process or method through which i could do this?