code: def load(self, filename=None):
          '''
          Reads a non-XML bcp FORMAT file and parses it into fields list used for creating bulk data file
          '''
          fields = []
          with open(filename, 'r') as f:
              format_data = f.read().strip()
  
          lines = format_data.split('\n')
          self._sql_version = lines.pop(0)
          self._num_fields = int(lines.pop(0))
  
          for line in lines:
              # Get rid of mulitple spaces
              line = re.sub(' +', ' ', line.strip())
              row_format = BCPFormatRow(line.split(' '))
              fields.append(row_format)
  
          self.fields = fields
          self.filename = filenamf load(self, filename=None):
          '''
          Reads a non-XML bcp FORMAT file and parses it into fields list used for creating bulk data file
          '''
          fields = []
          with open(filename, 'r') as f:
              format_data = f.read().strip()
  
          lines = format_data.split('\n')
          self._sql_version = lines.pop(0)
          self._num_fields = int(lines.pop(0))
  
          for line in lines:
              # Get rid of mulitple spaces
              line = re.sub(' +', ' ', line.strip())
              row_format = BCPFormatRow(line.split(' '))
              fields.append(row_format)
  
          self.fields = fields
          self.filename = filename
docs: Reads a non-XML bcp FORMAT file and parses it into fields list used for creating bulk data file