GUI: How to save these data to a text/dat file?
Hello, this is my first time in java forums :)
Here is my code which is slightly finished...i spent 2 weeks continuing this and still no progress :(
I HAVE NO IDEA HOW TO SAVE THE DATA TO A TEXT FILE :'(
i dont even know where to put it.
im familiar with BufferedWriter, PrintWriter, etc.
and i know how to use them, but NOT in GUI.
the goal of my program is to add student data from the user, enable the user to edit, delete, sort and save.
I can add, edit and delete only. Right now, i dont care how can i sort the students data, all i wanna know ryt now is how can i save the data to a file...
My Teacher's Instruction:
– Activating this button saves the current content of the course (together with the list of
students) under the filename output.dat (object file).
*** Store all successful transactions within a text file named log.txt ***:confused:
Hope i can get some help :) i only got 1 and half days left for our defense
Here is my code: