Adding Subprogram node in Java

Regarding reading in a script file, you will need to feed it in line by line rather than parsing the whole thing in one go. Fortunately Jacob from UR has made a sample which does exactly this, just pinch what you need from the following sample.