@Override
	public void perform() throws IOException {
		BufferedReader reader = new BufferedReader(new FileReader("./data/params.txt"));
		String line;
		
		while((line = reader.readLine()) != null) {
			if(line.contains("'archive=gamepack")) {
				
				String[] regex = line.split("archive=");
				String gamePackURL = "http://world27.runescape.com/" + regex[1].replace(" ');", "");
			
				URL url = new URL(gamePackURL);
				InputStream inStream = url.openStream();
				BufferedInputStream bufIn = new BufferedInputStream(inStream);
								
				File jarFile = new File("./data/currentGamePack.jar");
				OutputStream out = new FileOutputStream(jarFile);
				BufferedOutputStream bufOut = new BufferedOutputStream(out);
				
				byte[] bufferedArray = new byte[2048];
				while(true) {
					
					int inRead = bufIn.read(bufferedArray, 0, bufferedArray.length);
					if (inRead <= 0)
						break;
					bufOut.write(bufferedArray, 0, inRead);
				}
				bufOut.flush();
				out.close();
				inStream.close();
			}
		}
		reader.close();
	}