code: def writeRecord(self, infile):
          
          if self.bad:
              raise BadWOSRecord("This record cannot be converted to a file as the input was malformed.\nThe original line number (if any) is: {} and the original file is: '{}'".format(self._sourceLine, self._sourceFile))
          else:
              for tag in self._fieldDict.keys():
                  for i, value in enumerate(self._fieldDict[tag]):
                      if i == 0:
                          infile.write(tag + ' ')
                      else:
                          infile.write('   ')
                      infile.write(value + '\n')
              infile.write("ER\n")
docs: Writes to _infile_ the original contents of the Record. This is intended for use by [RecordCollections](./RecordCollection.html#metaknowledge.RecordCollection) to write to file. What is written to _infile_ is bit for bit identical to the original record file (if utf-8 is used). No newline is inserted above the write but the last character is a newline.
  
          # Parameters
  
          _infile_ : `file stream`
  
          > An open utf-8 encoded file