Matt,
Thanks, I found this below and the servlet is not
writing out to root anymore...
-Jim
File fFile = new
File("/export/home/grahamj",sPdfName) ;
FileWriter fOutFile = new FileWriter(fFile);
--- [EMAIL PROTECTED] wrote:
> You can specify the location of the file like this:
>
> String fileSep=
> System.getProperty("file.separator");
> BufferedWriter out = null;
> try
> {
> out = new BufferedWriter(new
>
FileWriter("c:"+fileSep+"webproperties"+fileSep+"supply.xml",
>
> true));
> }
>
> Is this what you were looking for?
>
> -----Original Message-----
> From: Jim Graham [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 25, 2000 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: [SERVLET-INTEREST] Setting working servlet
> using FileWriter
>
>
> I want to set the working directory for a servlet
> using FileWriter... -I read a stream in and attach
> the file created by FileWriter to an email...
> Right
> now, it leaves the file in my startjsm directory...
> thanks...
> Jim
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives:
>
http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
>
http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help:
> http://www.lsoft.com/manuals/user/user.html
>
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html