code: def _writeConnections(self, connections, fileObject):
          
          for connection in connections:
              fileObject.write('CONNECT  %s  %s  %s\n' % (
                  connection.slinkNumber,
                  connection.upSjuncNumber,
                  connection.downSjuncNumber))
docs: Write Connections to File Method