Files

File statements are declaration of an output device for text. It uses the keyword ‘file’. The file name and extension is given as a parameter. It may also include the relative or absolute path of the output. If no path or a relative path is given, the (externally defined) root directory property is used to define the absolute path of the output.

file (c.name + “.java”)
file (“c:\tmp\” + c.name + “.java”)
file f2 (“test.java”)

Output statements (prints and escaped output) will be written to the latest declared file in the runtime stack. A file declaration is active as long as the declaring rule is active.

f2.println (“\t\t output to file f2”)