tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan C N Chong" <ch...@cs.utwente.nl>
Subject RE: Access the file in a directory.
Date Mon, 08 Apr 2002 10:54:07 GMT
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:emmguyot@wanadoo.fr]
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: tomcat-user@jakarta.apache.org
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message