Esempio n. 1
0
  void loadFromFile() {
    SimpleFile oFile = null;
    try {
      oFile = RhoClassFactory.createFile();
      oFile.open(getConfFilePath(), true, false);

      if (oFile.isOpened()) {
        String strSettings = oFile.readString();
        oFile.close();
        loadFromString(strSettings);
      }

    } catch (Exception exc) {
      if (oFile != null)
        try {
          oFile.close();
        } catch (IOException exc2) {
        }
    }
  }