public static void loadConfig(String filename)
	{
		if (filename == null)
			filename = System.getProperty("user.home") + "/.SliceAndDaid.conf";
		BufferedReader br = null;
		try
		{
			br = new BufferedReader(new FileReader(filename));
		} catch (FileNotFoundException e)
		{
			return;
		}
		String line;
		String section = null;
		try
		{
			while ((line = br.readLine()) != null)
			{
				if (line.startsWith(";"))
					continue;
				if (line.startsWith("[") && line.endsWith("]"))
				{
					section = line;
					continue;
				}
				if (line.indexOf('=') < 0)
					continue;
				String key = line.substring(0, line.indexOf('='));
				String value = line.substring(line.indexOf('=') + 1);
				if ("[SliceAndDaid config]".equals(section))
				{
					setField(key, value);
				}
			}
		} catch (IOException e)
		{
			Logger.error("IOException during loading of config file...");
		}
	}