This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
Are we supposed to mind readers and guess what you got confused about?
Joined: May 20, 2010
I just don't understand writing to files.
Joined: Jun 13, 2009
Well then forget about the JFileChooser and first learn how to write to files by hardcoding the file name. Then once you understand that you can use the file choose to get a dynamic file name because the writing to the file code will be exactly the same.
I don't see whats wrong with the code you posted, but if you need help then:
a) I suggest you read the section in your text book because I'm sure it has working examples.
b) If you don't have a text book then you can find example I/O examples in the Java tutorials..