Code example for Properties

Methods: get, load

0
    } 
 
    /* װ�ء���ȡ���� */ 
    void load() { 
        /* ����Properties�Զ��� */ 
        Properties properties = new Properties();
        try { 
            /* �����ļ� */ 
            FileInputStream stream = this.openFileInput("music.cfg");
            /* ��ȡ�ļ����� */ 
            properties.load(stream);
        } catch (FileNotFoundException e) {
            return; 
        } catch (IOException e) {
            return; 
        } 
        /* ȡ������ */ 
        mbMusic = Boolean.valueOf(properties.get("bmusic").toString());
    } 
 
    /* �������� */ 
    boolean save() { 
        Properties properties = new Properties();