Dear Lavanya

Thank you very much for the reply. Please can u help me on my
other questions also,,,

Regards
Sachith


Lavanya writes:

> 
> 
> Sachith,
>  
> It seems like you are closing the output stream after writing each line. The trick 
> here is to keep the file (output stream) open and close it after write is complete 
> or in the finalize block.
>  
>  For more details follow this:
> http://java.sun.com/docs/books/tutorial/essential/io/overview.html
>  
> Lavanya
> 
> 
> Sachith Dassanayake <[EMAIL PROTECTED]> wrote:
> 
> 
> 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!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
> 
> [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 Links
> 
> 
> 
>  
> 
> 
> 

---------------------------------------------
Free POP3 Email from www.Gawab.com 
Sign up NOW and get your account @gawab.com!!





------------------------ 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=17256
    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/
 



Reply via email to