<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getClassifications(networkDataFile):
 """ Returns the classifications at the indices where the data sequences reset. @param networkDataFile (str) Path to file in the FileRecordStream format @return (list) list of string versions of the classifications Sample output: ["0 1", "1", "1 2 3"] """

    try:
      with open(networkDataFile) as f:
        reader = csv.reader(f)
        next(reader, None)
        next(reader, None)
        specials = next(reader)
        resetIdx = specials.index("R")
        classIdx = specials.index("C")

        classifications = []
        for line in reader:
          if int(line[resetIdx]) == 1:
            classifications.append(line[classIdx])
        return classifications

    except IOError as e:
      print "Could not open the file {}.".format(networkDataFile)
      raise e