public Config() throws IOException {
		BufferedReader reader;
		try {
			reader = new BufferedReader(new FileReader("config.ini"));
		} catch (FileNotFoundException e) {
			System.out.println("No config.ini file found.");
			return;
		}

		String line = reader.readLine();
		
		while (line != null) {
			try {
				String[] keyValuePair = line.split(" ", 2);
				if(keyValuePair[0].equalsIgnoreCase(KEY_EDITION))
					mEdition = keyValuePair[1];
				else if(keyValuePair[0].equalsIgnoreCase(KEY_USER))
					mUser = keyValuePair[1];
				else if(keyValuePair[0].equalsIgnoreCase(KEY_SERVER))
					mServer = keyValuePair[1];
				else if(keyValuePair[0].equalsIgnoreCase(KEY_LAYER))
					mLayer = keyValuePair[1];
				else if(keyValuePair[0].equalsIgnoreCase(KEY_FIELD)) {
					String[] fieldPreset = line.split(" ", 3);
					mFields.put(fieldPreset[1], fieldPreset[2]);
				}
				else if(keyValuePair[0].equalsIgnoreCase(KEY_REPLACE)) {
					String[] fieldPreset = line.split(" ", 3);
					mReplace.add(new String[] {fieldPreset[1], fieldPreset[2]});
				}
				else
					System.out.println("Invalid line in config.ini.");
			} catch (ArrayIndexOutOfBoundsException e) { System.out.println("Invalid line in config.ini."); }
				
			line = reader.readLine();
		}
		reader.close();
	}