code: def _write(self, session, openFile, replaceParamFile):
          
          # Retrieve TargetParameter objects
          targets = self.targetParameters
  
          # Write lines
          openFile.write('%s\n' % self.numParameters)
  
          for target in targets:
              openFile.write('%s %s\n' % (target.targetVariable, target.varFormat))
docs: Replace Param File Write to File Method