Question 1 Loads Story Current Room Bookmark File Method Assumes First Line File Containin Q37180667

Question 1:

Loads the story and the current room from a bookmark file. Thismethod assumes that the first

   * line of the file, containingConfig.MAGIC_BOOKMARK, has already been read from the Scanner.

   *

   * The format of a bookmark file is as follows:

   * Line No: Contents

   * 1: Config.MAGIC_BOOKMARK

   * 2: Story filename

   * 3: Current room id

   *

   * As an example, the following contents would loadthe story Goldilocks.story and set the

   * current room to id 7.

   *

   * #!BOOKMARK

   * Goldilocks.story

   * 7

   *

   * Your method should not duplicate the code fromthe parseFile method. It must use

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.