Article View: borland.public.jbuilder.java.swing
Article #8216How do you modify the content of a File
From: Pascal AUDANT
Date: Sat, 14 Oct 2000 00:00
Date: Sat, 14 Oct 2000 00:00
9 lines
965 bytes
965 bytes
Greetings everyone,
I am editing a file in a Java application. I want to be able to
write to the file but also remove stuff from it (correct it). The only
way I see right now to remove stuff from a file is to delete the entire
file and to re-write it whole except the stuff I wanted remove. (it's a
text file so the 'stuff' in question are actually String objects...)
Is there a better way to do this ?
thanx in advance,
Pascal
Technical Details
Message-ID:
<39E8AD29.EC6876A8@orbitek.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a0888bdc77105000,start X-Google-Attributes: gid111d45,public From: Pascal AUDANT <paco@orbitek.com> Subject: How do you modify the content of a File Date: 2000/10/14 Message-ID: <39E8AD29.EC6876A8@orbitek.com> X-Deja-AN: 681461790 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 14 Oct 2000 11:53:16 -0800, 24.200.194.166 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing