Displaying the contents of a text file into a Text Area...

wxdqz

New Member
Hi all, I have a servlet (written in java) that should read a TEXT file, putall the content of the text file in a variable and then display it in thetext area like this:<td><textarea rows=\"11\" cols=\"131\">" + TEXT + "</textarea></td>\n"Now the problem is that I can only read a line from the text file:FileReader fr = new FileReader(doc_path + doc_name + doc_ext);BufferedReader myInput = new BufferedReader(fr);TEXT = myInput.readLine();HOW could I display the whole TEXT of the file ?Thank in advance,Gabriele
 
Back
Top