Saturday, September 24, 2011

how to read line by line data from txt file in Android(JAVA) ?


URL url = new URL(
"http://dangalula.free.fr/psgtube/lesplusvues.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(
url.openStream()));

String theLine;
while ((theLine = in.readLine()) != null) {
Log.v("log_tag","line is :" +theLine);
}