What I'm trying to do is connect to a website and store everything that comes back using this code:
However, the stringbuilder is obviously not big enough because it cuts off quite early and before the information I need. Is there another way to store large buffers?
Thanks.
Code:
StringBuilder sb = new StringBuilder("");
URLConnection conn = url.openConnection();
BufferedReader rd = new BufferedReader(new InputStreamReader
(conn.getInputStream()));
String line = "";
while ((line = rd.readLine()) != null) {
sb.append(line);
}
Thanks.