Hello, I need suggestion for the following task:

My problem is how can I read a file in UNIX / AIX from an servlet.

Here a code.

java.io.File file = new java.io.File("/usr/bin", "file.txt");
java.io.BufferedReader in = new java.io.BufferedReader(new
java.io.FileReader(file));
String s = in.readLine();
while (s != null) {
        System.out.println(s);
}


Any suggestion?

Thanks a all.

Alex.


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to