user236501
user236501

Reputation: 8648

Java how to convert xls data into txt file

Hi is it possible to convert a excel file into txt file using java?

Upvotes: 1

Views: 10274

Answers (3)

Luixv
Luixv

Reputation: 8710

You can save your file in CSV format and then using "opencsv" (http://opencsv.sourceforge.net/) you can do whatever you want. BTW, opencsv is a java library.

Upvotes: 0

Rosdi Kasim
Rosdi Kasim

Reputation: 26036

You can use Apache POI to read xls or xlsx file and save it into csv or text format.

Upvotes: 5

theninjagreg
theninjagreg

Reputation: 1756

I'm sure there are Java excel libraries if you google it, but the easiest thing to do is save the excel file as a csv or tab delimited file from within excel itself.

Upvotes: 0

Related Questions