I think you are writing each line of the file in the textarea but when
you write a line you loose all the lines you have read from the file.

String textarea="";
File archivo=new File("C:\\archivo.txt");
FileReader fr=new FileReader(archivo);
BufferedReader br= new BufferedReader(fr);
//textarea=br.readLine(); WRONG
textarea+=br,readLine();

On Jun 12, 4:47 pm, Niharika Bhol <[email protected]> wrote:
> I wanted to write lines in a text area. bufferreader will read from
> the file and write in a text area. But in this operation i am getting
> the last line of the file in the text area only. But not the other
> lines. What do I do??

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to