Asked by Guido Wachsmuth on 19 March 2013 at 04:47

You can write directly to a file as follows:

handle := <fopen> ("somefilename.ext", "w");
<fputs> ("file contents string", handle);
fclose

If you use this API from a builder or on save rule, you can change it to the following form to ensure it only writes files statements like the above:

generate-java: (selected, position, ast, path, project-path) -> None()
Answered by Guido Wachsmuth on 19 March 2013 at 04:47