You can use one of the JMP Path Variables to point to a location to store and retrieve data. From you description of what you want to do, it sounds like the functionality you want is not a critical function so placing the file into a folder in the TEMP path might be a way to handle this. If at the beginning of your script, you have something like
Names Default To Here( 1 );
If( Is Directory( "$TEMP" || "/myfolder" ) == 0,
rc = Create Directory( "$TEMP" || "/myFolder" )
);
If( Is File( "$TEMP" || "/myFolder/myfile.txt" ) == 1,
thePath = Load Text File( "$TEMP" || "/myFolder/myfile.txt" )
);
You will be able to create a place to store myfile.txt if it does not exist, and if the file was placed there in a previous run, then it can be retrieved for use in the current running of the script.
You may want to explore other Path Variables rather than TEMP to see what location is best for your needs.
Look in
Help=>JMP Online Help
for documentation on the Path Variables
and in
Help=>Scripting Index
for examples of IsDirectory() and IsFile()
Jim