You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fred Esch <fe...@ecologic.net> on 2000/06/19 23:22:16 UTC

How do you get a FileOutputStream

Hi,
I am porting a servlet from JServ 1.1.1 and I haven't been able to
create a new file from
my servlet.  The code that I'm trying to port looks like this:

myFile =  new FileOutputStream(fileNameString);

The fileNameString has looked like "/export/user1/data1.cvs"
I have tried
 file:///export/user1/data1.cvs
but it tells me the file does not exist.

Any suggestions on how to write to a file from the servlet?


--
Fred Esch
____________________________________________________

E C O l o g i c    C o r p o r a t i o n
http://www.ecologic.net

fesch@ecologic.net
19 Eye Street, N.W.
Washington, DC 20001

v. 202.218.4100
f. 202.842.5088

Object-Relational Software Engineering and Systems Integration