S
SpreadTooThin
I want to open a url and read it into a string.
That string will be passed onto a json parser.
I tried this.. but it's doing nothing...
import java.net;
import java.io.*;
function getURL(url) {
URL hp = new URL(url);
URLConnection yc = hp.openConnection();
BufferedReader in = new BufferedReader(new
InputStreamReader(yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
{
alert(inputLine);
in.close();
}
}
That string will be passed onto a json parser.
I tried this.. but it's doing nothing...
import java.net;
import java.io.*;
function getURL(url) {
URL hp = new URL(url);
URLConnection yc = hp.openConnection();
BufferedReader in = new BufferedReader(new
InputStreamReader(yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
{
alert(inputLine);
in.close();
}
}