[1995] in java-interest
Re: File object questions
daemon@ATHENA.MIT.EDU (prepapol@lifl.fr)
Thu Sep 21 11:58:45 1995
From: prepapol@lifl.fr
Date: Thu, 21 Sep 95 11:23:10 +0200
To: java-interest@java.sun.com, john@anasazi.com
Hi John,
|-(1)Is there any way to open a file and append to it? Any stream-like
|-graceful way a-la UNIX?
|-
If speak about fopen, fclose,... you can see the class RandomAccessFile in the package
java.io.
|-(2)Is there any direct way to write a string to an output stream other than
|-by copying it to a byte array and then writing that?
|-
For a stream, you can use the classes DataInputStream or DataOutputStream, you've the
same method than in the class RandomAccessFile (it's in the same package)
-------------------------------------------------
Bruno CUVELIER e-mail: prepapol@lifl.fr
Universite des Sciences et Technologies de Lille
Laboratoire d'Informatique Fondemmentale de Lille
Cite Scientifique
U.F.R. d'IEEA, batiment M3
59655 Villeneuve d'Ascq CEDEX.
FRANCE
-------------------------------------------------
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com