Your problem description is really incomplete. If you want to solicit help to a
newsgroup or mailing list, I suggest provide more detailed information. When
you say "does not recognize" that really doesn't mean anything. Does it
compile? Does it throw an exception? Or does it not create the file?
What do you mean by "works" and "doesn't work"?
The filename must follow the platform requirements for file naming. Can you
create the file with the same name outside of your program?
You might check out the java newsgroups (NNTP) or the advanced-java mailing
list. You can find info on both at www.deja.com.
Bill
Florence Tan <[EMAIL PROTECTED]> on 08/06/99 06:24:15 AM
Please respond to "A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology." <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Bill Kayser/Worldstreet)
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 !
florence.vcf
smime.p7s