File Retrieval in SPL

Question

I’m trying to write a small program in Java. The program is supposed to let someone enter some information and save it into a file. Then, we can search the information using the same program. So far, I don’t know how to save and retrieve the information from a file. I’m new to programing, any help or recommendation will be appreciate it.

The program so far:

package CustomerInfo; 

import java.awt.Color; 

import java.awt.Font

 

…..

 

Answer

You can’t access a file with a SQL statement. And Java doesn’t have class libraries to do this. You can handle the file access and retrieval in SPL (Structured Process Language). For more information, see How to Call an SPL Script in Java.