Auto -> JS writing a file

Using a code component in the Builder, I want to write a file:

file_number=1
csv_file = open('p_number_pilot.csv', 'w')
csv_file.write('P_number\n')
csv_file.write(str(file_number))
csv_file.close()

This works locally, but the auto conversion to JS does not work online: open, write, and close do not get recognized.

Can sombody help how to write to a file online from a code component?


This is the auto conversion:

file_number = 1;
csv_file = open("p_number_pilot.csv", "w");
csv_file.write("P_number\n");
csv_file.write(file_number.toString());
csv_file.close();
1 Like

Not yet possible

Custom filenames and paths

1 Like