If you want to read the url in the line:
StringBuffer myString = new StringBuffer(); try { String thisLine; URL u = new URL("http://www.google.com"); DataInputStream theHTML = new DataInputStream(u.openStream()); while ((thisLine = theHTML.readLine()) != null) { myString.append(thisLine); } } catch (MalformedURLException e) { } catch (IOException e) { }
This will give you a simple old line, HTML markup and all.
Npike source share