I am writing a program which needs to read and write from excel files, irrespective of the format(xls or xlsx).
I am aware of the Apache POI, but it seems it has differe
Why not detect the file type from extension and use the appropriate Apache POI class for processing? I doubt there's an absolutely universal out-of-the-box solution for your situation.