private void loadConfig( String filename )
	{
		try{
			File file = new File(filename);
			BufferedReader br = new BufferedReader(new FileReader(file));

			String str;

			while((str = br.readLine()) != null)
			{
				if( str != null )
				{
					String item[] = str.split(":");
					if( item[0].equals( "port" ) )
					{
						try
						{
							mPortNum = Integer.parseInt(item[1]);
						}
						catch( NumberFormatException e )
						{
							mPortNum = -1;
						}
					}
					else if(item[0].equals( "debug" ) )
					{
						if( item[1].equals( "true" ) )
						{
							mIsDebug = true;
						}
					}
				}
			}
			br.close();
		}
		catch(FileNotFoundException e)
		{
			System.out.println(e);
		}
		catch(IOException e)
		{
			System.out.println(e);
		}
	}