Does anyone know of any way to send data from a Java application to an SQABasic script besides writing it to a temporary file.

I want to write a small Java utility that will send data to a SQABasic script. The only two ways I can think of to do this would be either
1. Have the Java utility write the data to a temporary file and then have the script read the file.
2. Create a DLL using JNI to link the two together.

The first way is feasible but not very elegant or stable. Iíve never tried anything like the second way so I donít know if it will actually work and I donít really have the time to mess around with JNI and DLLs anyway.

Any thoughts on the subject would be appreciated.