Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 4th, 2005, 10:08 AM   #1
JavaDummy
Newbie
 
Join Date: Jun 2005
Posts: 10
Rep Power: 0 JavaDummy is on a distinguished road
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
JavaDummy is offline   Reply With Quote
Old Jul 8th, 2005, 8:18 AM   #2
skuinders
Hobbyist Programmer
 
skuinders's Avatar
 
Join Date: Jun 2005
Location: MA, US
Posts: 204
Rep Power: 4 skuinders is on a distinguished road
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
skuinders is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:02 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC