how to pass the result of ResultSet to an outputfile
sagarika chinya
Greenhorn
Joined: Oct 17, 2002
Posts: 11
posted
0
I am new to java and jdbc, I have used ResultSet to query the database.I wanted to know how to store the result in a outputfile ie ResultSet rs = stmt.executeQuery(query); while(rs.next()) { String str = rs.getInt("movie_id"); String str2 = rs.getString("ReturnDate") can i use FileOutputStream,OutputStreamWriter,BufferedWriter and PrintWriter to write the str and str2 into an output file,