tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From runu rathi <runura...@yahoo.com>
Subject how can I make my Java code write to a file using relative paths
Date Mon, 10 Feb 2003 21:41:06 GMT
Hi all,
I am using the following statement in my .java file

out = new FileOutputStream("responses.txt", true);

I assumed that it should write in a file in the same
directory as the .java file in web-inf/classes

but instead it writes in C:\WINNT\system32

How can I get it to write at a particular place using
relative paths.

I shall appreciate any help.
Thanks,
Runu

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message