Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Reading Text file

Hi All,

I have successfully uploaded a Text file and now i want to display its contents into the TextView. Any help on reading the text of uploaded file.

Thanks & regards,

Abhay

Former Member
Former Member replied

Hi Abhay,

Can you try this:


String str=null;
String msg = "";

while((str=br.readLine())!=null)
{
  msg+ =  str+"\n"; 
}

I hope this helps!! Please revert back in case you have any other issue!

Thanks and Regards

Pravesh

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question