![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2005
Posts: 10
Rep Power: 0
![]() |
Adding Data
Hi there
I am currently constructing a student data file in Java. For the next part I have to add data to the file i have created, which needs to be confirmed as correct and appended to the file. I have a method set up and a menu, and have setup a method wor creating a new file, but not sure where to start with this. Does anyone have any code/hints that would enable me to complete this module of the program? Thanks Steve |
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4
![]() |
I don't think you need a method for creating a file... I would declare the File object as private at the class level and initialize it in the constructor. Then I would have methods for data verification, file writing, and file closing and I would do the actual inputting of data in the main method of another class.
__________________
"A stupid man's report of what a clever man says can never be accurate, because he unconciously translates what he hears into something he can understand." - B. Russell http://web.bryant.edu/~srk2 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|