The Artima Developer Community
Sponsored Link

Java Answers Forum
Editing a data file

1 reply on 1 page. Most recent reply: Apr 17, 2003 5:23 AM by Adam Duffy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Courtenay

Posts: 23
Nickname: courtz
Registered: Apr, 2003

Editing a data file Posted: Apr 17, 2003 4:59 AM
Reply to this message Reply
Advertisement
I understand that RandomAccessFile may read and write to a file, but how would I edit a string within that file. I am currently working on a GUI and I would like to edit certain features of the data file as well as delete features so that it can change the data read in by the JList.

Could anyone help?


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Editing a data file Posted: Apr 17, 2003 5:23 AM
Reply to this message Reply
A long, long, long time ago (okay, it was only 2 years ago) I used a RandomAccessFile as a low-level database. It was based on the article at JavaWorld which can be found at http://www.javaworld.com/javaworld/jw-01-1999/jw-01-step.html

It sounds like you will need to use this for your application. You can download the source code at the bottom of the page.

Hope this helps.

Adam

Flat View: This topic has 1 reply on 1 page
Topic: JFrames Previous Topic   Next Topic Topic: Difficulties on Java2 RMI application

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use