Kowshik Nandagudi wrote: . . . But is there anyway I can read the entire file into the memory and use that?? . . .
You can add the file to a List<
String>, but careful in case you run out of memory. You can analyse the file and put its contents into a database, and use
JDBC calls to retrieve what you need.
There are bound to be lots of other ways to do that.