Article View: borland.public.jbuilder.java.swing
Article #8140Re: How do you modify the content of a File
From: John McGrath TeamB
Date: Mon, 16 Oct 2000 00:00
Date: Mon, 16 Oct 2000 00:00
18 lines
1162 bytes
1162 bytes
On 14 Oct 2000 19:31:16 GMT, Joi Ellis wrote:
> I haven't looked to see if Java has the I/O type necessary for it.
> I would be disappointed if Java didn't have it.
The java.io.RandomAccessFile class should work for this. It allows you
to read and write arbitrary bytes to a file. Of course, if you use this
class to handle "text" files, you are responsible for handling issues
such as line endings and converting between Java characters and bytes.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.145486244923b76989c22@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39E8AD29.EC6876A8@orbitek.com> <8saca4$82c11@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a0888bdc77105000 X-Google-Attributes: gid111d45,public From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Subject: Re: How do you modify the content of a File Date: 2000/10/16 Message-ID: <MPG.145486244923b76989c22@forums.borland.com> X-Deja-AN: 682291896 References: <39E8AD29.EC6876A8@orbitek.com> <8saca4$82c11@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing