File generating and uploading


I need to create / generate file and upload when running my tests not locally.
Could you please give me an advice how to implement file creating and uploading?
locally, file uploading works for me, but I need a solution when tests run in teamcity.

Hello Aukse ,
You can use code for file create.


f = new File('C:\\Users\\test\\Desktop\\TEST.txt')