Page 1 of 1

A question of csv file

PostPosted: Thu Jan 04, 2018 9:44 am
by supernam
Hi All,

I'm a java developer. I need to read the csv file in linux now.
Can I use the jopendocument API to read csv files? or save the csv file as an ods file.

Thanks in advance.

Re: A question of csv file

PostPosted: Thu Jan 04, 2018 12:26 pm
by Villeroy
This is a user forum for OpenOffice. I'm not sure anybody here knows jopendocument.
Anyway, at least the API should allow you to read the delimited data into a nested array and then dump it into a sheet analog to https://wiki.openoffice.org/wiki/Docume ... Data_Array
If you are running a desktop Linux then you have an ODF suite intstalled, propably LibreOffice. Install its SDK and use its API. This forum is full of examples that apply to LIbreOffice and OpenOffice likewise.