//Gets news from a text file public void News(String WebPage) { try { URL url = new URL(WebPage); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); String PageContents; while ((PageContents = in.readLine()) != null) { log("[News]"); log(PageContents); } in.close(); } catch (MalformedURLException e) { } catch (IOException e) { } } //Gets and compares versions from a text file public boolean Version(String WebPage, Double ScriptVersion) { try { URL url = new URL(WebPage); BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream())); String PageContents = in.readLine(); double WebVersion = Double.parseDouble(PageContents); if (WebVersion > ScriptVersion) { return true; } in.close(); } catch (MalformedURLException e) { } catch (IOException e) { } return false; }