readFile() публичный Метод

Parses the passed file (uses KSP.IO) and returns the parsed object
public readFile ( String path ) : object
path String Path.
Результат object
Пример #1
0
 public void loadProgram(String title)
 {
     currentTitle = title;
     try {
         spaceProgram = (SpaceProgram)parser.readFile(currentSpaceProgramFile);
     } catch {
         spaceProgram = SpaceProgram.generate();
     }
 }
Пример #2
0
 public void loadSettings()
 {
     try {
         settings = (Settings)parser.readFile("settings.cfg");
     } catch {
         settings = new Settings();
     }
     settings.changed = false;
     Difficulty.init(settings.difficulty);
 }