def read_header(self, text_file):

        header_text = text_file.readline().decode('ascii')
        arrheader = header_text.split()

        # Verify header exists and is in the expected format
        if len(arrheader) >= 5 and arrheader[4].upper() != self.text_ident.upper():
            raise Exception('Expected header not found.  Make sure the file being processed includes headers ' +
                         '(LABEL output control option): ' + header_text)
        if len(arrheader) != 9 or not is_int(arrheader[0]) or not is_int(arrheader[1]) or not is_float(arrheader[2]) \
           or not is_float(arrheader[3]) or not is_int(arrheader[5]) or not is_int(arrheader[6]) or not is_int(arrheader[7]):
            raise Exception('Unexpected format for FHDTextHeader: ' + header_text)

        headerinfo = np.empty([8], dtype=self.dtype)
        headerinfo['kstp'] = int(arrheader[0])
        headerinfo['kper'] = int(arrheader[1])
        headerinfo['pertim'] = float(arrheader[2])
        headerinfo['totim'] = float(arrheader[3])
        headerinfo['text'] = arrheader[4]
        headerinfo['ncol'] = int(arrheader[5])
        headerinfo['nrow'] = int(arrheader[6])
        headerinfo['ilay'] = int(arrheader[7])

        self.format_string = arrheader[8]

        return headerinfo
Create a StartTLS command.  (This is private.  Use AMP.callRemote.)
dataset/ETHPy150Open modflowpy/flopy/flopy/utils/formattedfile.py/FormattedHeader.read_header--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/amp.py/StartTLS.__init__