Read .dat and .mod files using a Java algorithm

I have multiple optimization problems that i used to solve using IBM ILOG Optimization Studio.

Now, seen that i have multiple Instance_i.mod and Instance_i.dat files, it takes too much time to solve instance one by one by clicking.

So, how to read these .mod and .dat files using a java algorithm that i compile using netbeans or eclipse?

Thank you.