aspose file tools*
The moose likes I/O and Streams and the fly likes  read the records from database and write the text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic
Author

read the records from database and write the text file

D Ravi Kumar
Greenhorn

Joined: Dec 11, 2008
Posts: 4
hello Guys,

in database so many records based on the perticulr primary key get the records and write the new file with .csv format

Thanks
Ravi...
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

Is that a question?

Anyways, where is it that you are facing a problem? Is it reading from the database or writing to a CSV file?
Since database access is fairly normal, i assume you would know that.
This FAQ entry will give you the details of how to read/write CSV files.


apigee, a better way to API!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Doublepost: http://www.coderanch.com/t/422845/Streams/java/Read-Records-Database-write-records

I already answered the other topic. As you want to have it in a CSV file, then my answer is certainly highly suitable.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: read the records from database and write the text file