The Artima Developer Community
Sponsored Link

Java Answers Forum
need FileInputOutputStream

1 reply on 1 page. Most recent reply: Aug 12, 2004 5:53 AM by Vincent O'Sullivan

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
Gibran Shah

Posts: 27
Nickname: gibby
Registered: Jun, 2004

need FileInputOutputStream Posted: Aug 11, 2004 10:49 PM
Reply to this message Reply
Advertisement
Hey everyone,

I was wondering what kind of classes are out there for both reading from and writing to a file at the same time. I know how to use a FileOutputStream, and I know how to use a FileInputStream, but I need something that has the features of both, like a FileInputOutputStream.

Gibran


Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: need FileInputOutputStream Posted: Aug 12, 2004 5:53 AM
Reply to this message Reply
One possibility would be the RandomAccessFile. It implements both the DataIinput and DataOutput interfaces. Random access files can be opened in "read-only" and "read/write" modes.

Vince.

Flat View: This topic has 1 reply on 1 page
Topic: Date of system Previous Topic   Next Topic Topic: Reporting in Java Swing Apps

Sponsored Links



Google
  Web Artima.com   

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