def write_file(self):
        """
        Write the package file.

        Returns
        -------
        None

        """
        f_lmt = open(self.fn_path, 'w')
        f_lmt.write('%s\n' % self.heading)
        f_lmt.write(('OUTPUT_FILE_NAME ' + self.output_file_name) % '%s\n')
        f_lmt.write('%s%10i\n' % ('OUTPUT_FILE_UNIT ', self.output_file_unit))
        f_lmt.write('%s\n' % ('OUTPUT_FILE_HEADER ' + self.output_file_header))
        f_lmt.write('%s\n' % ('OUTPUT_FILE_FORMAT ' + self.output_file_format))
        f_lmt.close()
dataset/ETHPy150Open modflowpy/flopy/flopy/modflow/mflmt.py/ModflowLmt.write_file/swapped operands of `%`