RobotStudio event

Sending files from c# program to the controller

I am trying to send files as .txt or .mod to the controller with my c# program, any ideas how to do it?. 
In my program I write in the file some information and now I want to send it to the controller.