🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3254

Re: appending a file

#3254
From: Sean C. Sheridan
Date: Wed, 01 Apr 1998 00:00
40 lines
1630 bytes
James,

I knew that...I was looking for something a little
deeper....like what does it mean?



Sean
-----


James D. Frentress wrote:
> 
> Sean C. Sheridan wrote:
> 
> > Looking for advice / help on appending a file:
> >
> > 1. How do I 'open' an exsisting file (vs. creating a new one)
> > 2. How do I use the 'append' flag on FileOutputStream
> > 3. Does anyone have a (simple) example of a file locking
> > system?
> > 4. Must I use a file locking system? (The data is coming in
> > through
> >         an applet ... multiple users ... yadda yadda yadda).
> >
> > Thanks,
> >
> > seanc@seas.upenn.edu
> >
> > File outputFile = new File("out.txt");
> > FileOutputStream fos = new FileOutputStream(outputFile);
> > String key = (String) e.nextElement();
> > String dataOut = (key + " = " + req.getParameter(key) + "; ");
> > out.println(dataOut);
> > fos.write(dataOut.getBytes());
> >
> > fos.close();
> 
>    FileOutputStream fos = new FileOutputStream(outputFile, true);
Technical Details
Message-ID: <35224F9F.C9784FCA@seas.upenn.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <352174A8.8B52EC7D@seas.upenn.edu> <35218E35.628BE195@seanet.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,8a6b5c9ff650d8d7
X-Google-Attributes: gid1089d0,public
From: "Sean C. Sheridan" <seanc@seas.upenn.edu>
Subject: Re: appending a file
Date: 1998/04/01
Message-ID: <35224F9F.C9784FCA@seas.upenn.edu>
X-Deja-AN: 339843172
Content-Transfer-Encoding: 7bit
References: <352174A8.8B52EC7D@seas.upenn.edu> <35218E35.628BE195@seanet.com>
Mime-Version: 1.0
To: "James D. Frentress" <srschill@seanet.com>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api