NEW to writing/saving to a file
this is the first time in my class they have addressed writing to a txt file. the examples they walked me though involve having 3 buttons on the gui, an "open file" button, a "enter data" and a "close file" button. i sort of understand that, using JFileChooser. however, the application i am supplied with that i need to finish has one button basically a "enter" button, and the files are to automatically go to the appropriate txt file. i am BRAND new at this, and looking at code something like this:
am i even close?
private void reserveCarJButtonActionPerformed( ActionEvent event )
File reserveFile = new File ( "reservations.txt" );
FileReader reserveFile = new FileReader ( "reservations.txt" )
input = new BufferedReader ( inputFile );
} // end method reserveCarJButtonActionPerformed
i really am having trouble wrapping my head around the process of writing/reading to another file for some reason, so very basic answers are helpful.