private void load() throws FileNotFoundException {
		File file = new File("test.txt");
		
		//Check if the file already exists, if not throw exception
		if (!file.isFile()) {
			throw new FileNotFoundException();
		}
		Scanner scan = new Scanner(file);
		
		try {
			
			String cfg = "";
			
			while (scan.hasNext()) {
				//Sort all lines of configuration to one string. Separate options with ";;"
				cfg = cfg.concat(scan.nextLine() + ";;");
			}
			
			Logger.log("Successfully loaded configuration from file.");
			
			Set<String> set = configuration.keySet();
			HashMap<String, String> newConfig = new HashMap<String, String>();
			
			for (String s: set) {
				if (cfg.contains(s)) {
					//Skin string to start with our option
					String setting = cfg.substring(cfg.indexOf(s));
					//And end at the next ";;"
					setting = setting.substring(0, setting.indexOf(";;"));
					
					//Update the current setting to the loaded value
					newConfig.put(s, setting.substring(setting.lastIndexOf(": ")+2));
				}
			}
			
			Set<String> newSet = newConfig.keySet();
			//Update the configuration map
			for (String s: newSet) {
				changeSetting(s, newConfig.get(s));
			}
			
		} catch(Exception e) {
			Logger.log("SEVERE", file.getAbsolutePath() + " was corrupted, restoring default settings");
			
			//If something goes wrong, delete the file and create new ones from the defaults
			file.delete();
			createSettings();
			saveSettings();
		}
		
		//Close the file
		scan.close();
		saveSettings();
	}