code: def _read(self, directory, filename, session, path, name, extension, spatial, spatialReferenceID, replaceParamFile):
          
          # Assign file extension attribute to file object
          self.fileExtension = extension
  
          # Open file and parse into a data structure
          with open(path, 'r') as f:
              for line in f:
                  sline = line.strip().split()
  
                  if len(sline) == 1:
                      self.numLocations = sline[0]
                  else:
                      # Create GSSHAPY OutputLocation object
                      location = OutputLocation(linkOrCellI=sline[0],
                                                nodeOrCellJ=sline[1])
  
                      # Associate OutputLocation with OutputLocationFile
                      location.outputLocationFile = self
docs: Generic Output Location Read from File Method