9B6FA3C4-40D6-45A4-8F48-E3EC305536DD4.0LetterLetter\for_you.imfChubbyconsCharactersFor
YouSU1CTDEsNDYsgUmBScUwmTgklTSJTYmBKJlNiY0kiU3BOInBTSyVLDSVgY2NlZkoKEmBSYFJgSxJTUJMMiwwLCxJTUJMMywwLCw=A25CA87C-4D0D-47AF-9C01-2918252C5DFAno-repeat#e7edf7rightbottom7A42E450-357F-11D4-BA31-0050DAC6803002D6C0820-4542-11D4-BA40-0050DAC680301F8E92E70-3EFC-11D4-BA3D-0050DAC680300F8E92E70-3EFC-11D4-BA3D-0050DAC6803017E485C40-4138-11D4-BA3D-0050DAC680300X-ASN,X-ASH,X-AN,X-AP,X-AD;
dear fren,
wat u are asking for can easily done...using files...if u could go through the
documentation ...i wl give u a hint...try using random access files
The following code creates a RandomAccessFile to read the file named farrago.txt:
new RandomAccessFile("farrago.txt", "r");
And this one opens the same file for both reading and writing:
new RandomAccessFile("farrago.txt", "rw");
i hope this will help
and fren if u want to really learn java...then u shld first gothrough the
documentation and examples urselves..and then only ask for help..bcoz if u solve a
problem urself..it builds up the confidence
bye
aqua
-------Original Message-------
From: [EMAIL PROTECTED]
Date: 10/24/04 18:37:11
To: [EMAIL PROTECTED]
Subject: [Java] Java File Handling
I 'm doing a simple program on file handling in JAVA.
I need to store 3 data
1 First Name
2 Last Name
3 Phone Number
in to a file. (Not a Database). I
tryed to do it using
datainputstreams etc.. But when i enter the second record it
over writes the first record.
How can i over ome this problem
Also I hav to display all the records in a table after entering.
It has to be worked even I close the program and reopen it.
It would be greatful if any one can help me on my program.
Thank you
Sachith
---------------------------------------------
Free POP3 Email from www.Gawab.com
Sign up NOW and get your account @gawab.com!!
[Non-text portions of this message have been removed]
If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be made
it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted.
Yahoo! Groups SponsorADVERTISEMENT
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/java_official/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM
--------------------------------------------------------------------~->
If you have any comments or questions, submit it on the message board.
NO spam/ads/job posting or you will be BANNED from this group. Exception can be made
it happen by notify me ahead of time.
all new members' message will be verified by me (spam..) before it get posted.
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/java_official/post?act=reply&messageNum=17240
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/java_official/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/