• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading db and creating a file  RSS feed

 
Donald Wynn
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to be able to read a database and puts the results off of the db into a file. How can I do this?
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To read from a database, use JDBC.
To write to a file, use a java.io.FileWriter.
If you have more specific questions though, go ahead and ask!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!