It is possible to read in a JSL Script line by line (actually JMP makes a list with each line as a list item) using the code below.
myFile= open("$PATH\testScript.jsl");
myCfLines= myFile[scriptBox(1)] << getLines();
However, when I try to do this with a text file which has a '*.txt' extension JMP automatically opens this as a data table and so I cannot use this method to get the lines (as it's not a script box!)
Is there another method? I dont want to use the loadTextFile() Function as this scrapes the whold file into a string. Ideally I'd like to open the file, read in each line one at a time and do a regexp to pull out the data I need!