private void loadFile(String file)
    {
        BufferedReader buf = null;
        
        String line;
        
        try
        {
            buf = new BufferedReader(
                      new InputStreamReader(
                          new FileInputStream(file)));

            while((line=buf.readLine()) != null)
            {
                StringTokenizer st = new StringTokenizer(line);
                int count = st.countTokens();
                
                if(count<=0)
                    continue;
                
                String token = st.nextToken();
                if(token.startsWith("#"))
                    continue; // comments ok

                if(!token.startsWith("-"))
                    fatal("Expected switch");
                
                if(count==1)
                {
                    checkAndPut(token, "", true);
                    continue;
                }
                
                if(count!=2)
                    fatal("Illegal line. Only two parameters per line.");
                
                checkAndPut(token, st.nextToken(), true);
            }
        }
        catch(Exception err)
        {
            fatal("Error reading file: " + file);
        }
        finally
        {
            try { buf.close(); } catch(Exception ign) {}
        }
    }