0 votes
33 views
in Integrations by (13.6k points)

1 Answer

0 votes
by (13.6k points)
selected by
 
Best answer
var managedFile = tw.system.model.findManagedFileByPath("somefile.csv", TWManagedFile.Types.Web);
log.error("Got the managed file!: " + managedFile);
// load the textual content into a variable
var textualContent = managedFile.readText();
// write the file to filesystem
managedFile.writeDataToFile("/tmp/somefile.csv");

Related questions

0 votes
1 answer 81 views
0 votes
1 answer 39 views
0 votes
1 answer 191 views
0 votes
1 answer 52 views
0 votes
1 answer 172 views
0 votes
0 answers 30 views
0 votes
2 answers 426 views
0 votes
1 answer 164 views
0 votes
0 answers 21 views
0 votes
1 answer 117 views
0 votes
1 answer 70 views
0 votes
0 answers 339 views
0 votes
0 answers 70 views
...