public static void loadFromFile() throws Exception {
        BufferedReader in = new BufferedReader(new FileReader(fileName));
        String s = null;
        while ((s = in.readLine()) != null) {
            if (s.startsWith("#")) {
                if (s.startsWith("#graphRes")) {
                    graphRes.clear();
                    int n = Integer.parseInt(in.readLine());
                    for (int i = 0; i < n; i++) {
                        StringTokenizer tok = new StringTokenizer(in.readLine(), " ");
                        graphRes.add(new Vector2f(
                                Float.parseFloat(tok.nextToken()),
                                Float.parseFloat(tok.nextToken())));
                    }
                } else if (s.startsWith("#wasFract")) {
                    Arrays.fill(wasFract, false);
                    StringTokenizer tok = new StringTokenizer(in.readLine());
                    while (tok.hasMoreTokens()) {
                        wasFract[Integer.parseInt(tok.nextToken())] = true;
                    }
                }
            } else {
                StringTokenizer tok = new StringTokenizer(s, "=");
                String fieldName = tok.nextToken();
                String value = tok.nextToken();
                Field f = Physics06Settings.class.getField(fieldName);
                f.set(Physics06Settings.class, parseObject(f.getType(), value));
            }
        }
        in.close();
        refresh();
        clear();
    }