0 votes
31 views
in Integrations by (13.5k points)

1 Answer

0 votes
by (13.5k 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 62 views
0 votes
1 answer 36 views
0 votes
1 answer 177 views
0 votes
1 answer 44 views
0 votes
1 answer 167 views
0 votes
0 answers 29 views
0 votes
2 answers 386 views
0 votes
1 answer 144 views
0 votes
0 answers 20 views
0 votes
1 answer 101 views
0 votes
1 answer 63 views
0 votes
0 answers 316 views
0 votes
0 answers 63 views
...