Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 53837 invoked from network); 10 Feb 2003 21:41:13 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 10 Feb 2003 21:41:13 -0000 Received: (qmail 12054 invoked by uid 97); 10 Feb 2003 21:42:49 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 12047 invoked from network); 10 Feb 2003 21:42:48 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 10 Feb 2003 21:42:48 -0000 Received: (qmail 52412 invoked by uid 500); 10 Feb 2003 21:41:00 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52400 invoked from network); 10 Feb 2003 21:41:00 -0000 Received: from web41315.mail.yahoo.com (66.218.93.64) by daedalus.apache.org with SMTP; 10 Feb 2003 21:41:00 -0000 Message-ID: <20030210214106.1101.qmail@web41315.mail.yahoo.com> Received: from [129.107.25.54] by web41315.mail.yahoo.com via HTTP; Mon, 10 Feb 2003 13:41:06 PST Date: Mon, 10 Feb 2003 13:41:06 -0800 (PST) From: runu rathi Subject: how can I make my Java code write to a file using relative paths To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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