The beanshell write the string 'hello' four times separated by a new lineto a temporary file. The filepath to the temporary file is then passed to the Read_text_file service which reads the file and outputs the string 'hello
hello
hello
hello'.
net.sourceforge.taverna.scuflworkers.io.TextFileReader
hello
4
File temp = File.createTempFile("taverna", "txt");
temp.deleteOnExit();
BufferedWriter writer = new BufferedWriter(new FileWriter(temp));
String newline = System.getProperty("line.separator");
for (int i = 0; i < Integer.parseInt(count); i++) {
writer.write(content + newline);
}
writer.close();
out = temp.getCanonicalPath();
content
count
out