This is kind of how I do this using semi-pseudo-code
Java Code:
      create ArrayList<String> called lines
      while (file has more strings)
      {
        String line = read line from file.
        if line equals sentinal string // "***"
        {
          do analysis on arraylist of strings
          set array list of strings to a new arraylist
          initialize any variables necessary
        }
        else
        {
          add line read in to arraylist
        }
      }
      do analysis on arraylist of strings
Actually in my demo of this, I read all my Strings in first into a List<List<String>>, and then I analyzed each List<String>.