then you can use something like :
String filecontent = "";
BufferedReader br = new BufferedReader(new FileReader(fileName));
while (br.ready())
{
filecontent += br.readLine(); // you can add a "\n" to indicate a line
break -> filecontent += (br.readLine()+"\n")
}
----- Original Message -----
From: "Ganesh Mohan Rao" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 20, 2000 1:52 PM
Subject: (Off Topic) Please Bare with ME!!!
Dear All,
Please bare with me for this Off Topic Question.
I would like to know whether there is a possiblity of reading the contents
of a files at one stretch.
Now I am using FileReader and Buffer Reader in which I am using Readline()
method which reads line by line.
My PL wants to read the Content as a whole in one operation.
Is that possible?
Please help me out ASAP.
I have to report to my PL.
Once Again Please bare with me for this Off Topic Question.
Ganesh.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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