public static String getMapfile()
    {
        String mapfile = "";
        try
        {
            BufferedReader r = new BufferedReader(new FileReader("config.txt"));
            String line = r.readLine();
            while (line != null)
            {
                if (line.startsWith("Mapfile="))
                {
                    String[] tokens = line.split("=");
                    mapfile = tokens[1];
                }
                line = r.readLine();
            }
            r.close();
        }
        catch (Exception ex)
        {
            mapfile = "";
        }
        return mapfile;
    }