How can I read .xlsx and .xls files in Java?

Srinivas picture Srinivas · Jan 17, 2011 · Viewed 14.7k times · Source

hi i want to read xlsx file or xls file what ever it is. can XSSF support xls file ? or do i need to write the separate code for both kind of files ?

Answer

Murukesh picture Murukesh · Jan 17, 2011

Yes, you can use Apache POI to read and write xlsx and xls files.