----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Try something like this:
InputStream in = ClassLoader.getSystemResourceAsStream("datafile.txt");
Then, your file only needs to be in the server's classpath.
Russ
Dan Martin <[EMAIL PROTECTED]> on 10/27/99 03:13:35 PM
Please respond to Java Apache Users <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: Russ Pridemore/GVL/BSM/MCI)
Subject: Simple problem with file I/O
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I am trying to move servlets from a JRUN server to a host that uses JSERV.
I keep getting an internal configuration error on the servlets that use file
i/o. I dont think I am getting the path right. I have tried many combination
without success. Here is a piece of code:
TextInputStream in = new TextInputStream("datafile.txt");
What directory is JSERV looking for the "datafile.txt" file using this
format.
Thanks You,
Dan Martin
http://buoyweather.com/
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]