public boolean readPrefs()
		{
			boolean Result = false;
			
			try {
				FileInputStream fstream = new FileInputStream("peppref.txt");
				DataInputStream in = new DataInputStream(fstream);
				BufferedReader br = new BufferedReader(new InputStreamReader(in));
				String currentLine;
				String[] iddpair;
				while ((currentLine = br.readLine()) != null) {
					String[] currentPref = currentLine.split("=");
					switch ( currentPref[0].toUpperCase() ){
						case "SYSTEMTITLE":	prefs.setSysTitle(currentPref[1]); break;
						case "GMTOFFSET": prefs.setGMTOffset(currentPref[1]); break;
						case "USERINTERFACE": prefs.setUserInterface(currentPref[1].toUpperCase()); break;
						case "IDDPAIR":
							iddpair = currentPref[1].split(",");
							prefs.getIDDPairMap().put(iddpair[0], iddpair[1]); //database name, input device name
							break;
					}
				}
				br.close();
				Result = true;
			}
			catch (Exception e){
				System.err.println("Error: " + e.getMessage());
			}
			
			return Result;
		}