Dear Emmanuel :)

I am sorry I typed the wrong thing here, I have tried this instead, which
caused the problem:

FileInputStream file = new FileInputStream("C:\\Apache Tomcat
4\webapps\\examples\\file.txt");

Sorry for the mistake...

-----Original Message-----
From: Emmanuel Guyot [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:51 PM
To: Tomcat Users List
Subject: Re: Access the file in a directory.



Remember that \ is a special character. Instead use :
FileInputStream file = new FileInputStream("C:\\Apache Tomcat
4\webapps\\examples\\file.txt");

or

FileInputStream file = new FileInputStream("C:/Apache Tomcat
4/webapps/examples/file.txt");

E.G.

Emmanuel Guyot
8 Rue des Mont�es
45100 Orl�ans
France

----- Original Message -----
From: Jordan C N Chong
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 12:01 PM
Subject: Access the file in a directory.


Dear all,

I have installed the standalone version of Apache Tomcat 4.0 on my Windows
2000 machine. And everything is running well. However when I wish to, like
access a file:

FileInputStream file = new FileInputStream("C:\Apache Tomcat
4\webapps\examples\file.txt");

Tomcat complains that the directory is not accessible. Please help me out
with this setting. Thank you very much. Wish you all the best.


Best regards,
Jo


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to