Make sure that the fileName variable is of type String.
(*Chris*)
----- Original Message -----
From: Florence Tan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 06, 1999 3:24 AM
Subject: FileOutputStream Question
> Hi,
>
> I hope someone out there can help me out with this java application
> problem and if you know of any Java mailing list or news group, please
> do let me know.
>
> Problem:
>
> I am trying write some information to a file using system date as file
> name and this file name has been declared as a string variable. I face
> a problem now that the FileOutputStream method does not recognise the
> string variable as the file name unless I enter the filename with double
> quote.
>
> e.g.
> f_outStream = new FileOutputStream("retrieve.txt"); works but
> f_outStream = new FileOutputStream(fileName); doesn't work
>
> I hope some one can out a solution for me !
>
> Thanks !
>
>
>
>
___________________________________________________________________________
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