tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From runu rathi <>
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.

Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message