public int loadFromFile()
	{
		try
		{
			BufferedReader in = new BufferedReader(new FileReader("settings"));
			
			String a = "";
			
			while ((a=in.readLine()) != null)
			{
				String[] args = a.split("=");
				if (args.length == 2)
				{
					
					try
					{
						if (args[0].equals("display_width"))
							this.display_width=Integer.parseInt(args[1]);
						if (args[0].equals("display_height"))
							this.display_height=Integer.parseInt(args[1]);
						if (args[0].equals("display_full"))
							this.display_full=Boolean.parseBoolean(args[1].trim());
						if (args[0].equals("display_vsync"))
							this.display_vsync=Boolean.parseBoolean(args[1].trim());
					}
					catch (NumberFormatException nfe)
					{
						Util.PrintText(2,"Error in settings file at "+args[0]);
					}
				}
			}
		}
		catch (FileNotFoundException fnfe)
		{
			//Can be thrown by FileReader's constructor
			//This probably means the settings file hasn't been created, or has been deleted. Nevermind, just tell the user
			fnfe.printStackTrace();
			return 2;
		}
		catch (IOException ioe)
		{
			//Can be thrown by BufferedReader's constructor
			//This isn't a nice error. There is no indication of what is wrong
			ioe.printStackTrace();
			return 1;
		}		
		

		return 0;
	}