generating .csv file with the datas from the database

Hi Java experts,

Ihave a current assignment to generate a .CSV file using java getting values from database. The output CSV file may have more than one row and each row should have a end of line delimiter. Any help in giving a template for generating a CSV file accessing from database is greatly appreciated.

[322 byte] By [smaranika@05a] at [2007-11-27 11:32:15]
# 1

> Ihave a current assignment to generate a .CSV file

> using java getting values from database.

well, I hope you learn something doing it yourself...

> The output

> CSV file may have more than one row and each row

> should have a end of line delimiter. Any help in

> giving a template for generating a CSV file accessing

> from database is greatly appreciated.

How about looking for a JDBC and a file/print stream tutorial?

CeciNEstPasUnProgrammeura at 2007-7-29 16:44:26 > top of Java-index,Java Essentials,Java Programming...
# 2

You need the output to be in the format

a,b,c,d,e

f,g,h,i,j

Save in with the extension .csv and your home work s over ;-)

New_Kida at 2007-7-29 16:44:26 > top of Java-index,Java Essentials,Java Programming...