File generating and uploading

Hi,

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.

import java.io.File

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