public static void loadPrefsFile(CommandParser parser, String filename) {
		try {
			BufferedReader buffer = new BufferedReader(new InputStreamReader(new FileInputStream(filename)));

			String line = buffer.readLine();
			while (line != null) {
				try {
					parser.parse(line, true, true);
				} catch (UnknownCommandException uce) {
					System.out.println("Unknown Command");
				}

				line = buffer.readLine();
			}

			buffer.close();
		} catch (FileNotFoundException fnfe) {
			System.err.println("File Not Found: " + filename + "\n" + fnfe);
		} catch (Exception e) {
			System.err.println("Could not create FileReader: " + filename + "\n" + e);
		}
	}