^^^ Brillant idea. Javapenguin.Originally Posted by javapenguin
try this...
-------
BufferedReader inputStream = null;
inputStream = new BufferedReader(new FileReader(filename));
String tmpStr = "";
if (inputStream != null) {
while((line = inputStream.readLine()) != null) {
tmpStr += (line + "\n");
}
textArea.setText(line);
}
-----
Nice ni ciya. From 1st data to last data sa file. Cge akong usbon ang code. Thanks to boxingfan529. :mrgreen:Originally Posted by boxingfan529
I think it should be textArea.setText(tmpStr)Originally Posted by boxingfan529
not textArea.setText(line)
since this is the target object in concatenation bcoz line holds the last read line.
heheh... edited na. Mao ni ang power sa OpenSource. Tinabangay.Originally Posted by javapenguin
gud...
tanx jud kay ninyo guys!! mah problem has been solved!!!!
Your welcome bro.Originally Posted by jerx d great
No problemOriginally Posted by jerx d great
Similar Threads |
|