Writes the header to file.
486111
def write_case_data(self, file):
        
#        title = "Power Flow Solution"
#        file.write("=" * len(title))
#        file.write("\n")
#        file.write("\n%s\n" % title)
#        file.write("=" * len(title))
#        file.write("\n")

        # Document subtitle.
        subtitle = self.case.name
        file.write("-" * len(subtitle))
        file.write("\n%s\n" % subtitle)
        file.write("-" * len(subtitle))
        file.write("\n")

        file.write("System Summary\n")
        file.write("-" * 14)
        file.write("\n")

        self.write_how_many(file)
        self.write_how_much(file)
        self.write_min_max(file)
486275
private static void writeHeader(final PrintWriter writer) {
		writer.println("<table>");
		writer.println("<thead>");
		writer.print("<tr>");
		writer.print("<th>Class</th>");
		writer.print("<th>Model</th>");
		writer.print("<th>Size</th>");
		writer.print("<th>Ref.</th>");
		writer.print("<th>Name</th>");
		writer.print("<th>Comment</th>");
		writer.println("</tr>");
		writer.println("</thead>");
	}
16230
protected void writeHeader()
		throws ConfigurationException, IOException
	{

		if (this.output != null) {
			close();
		}

		this.counter++;

		String filePath = PATH_OUTPUT_SQL_FILES + this.outputName +"_"+counter;

		this.output = OutputFactory.getOutputStream(filePath);

		// System.out.println(filePath);
		SQLConsumerLogMessages.logFileCreation(logger, filePath);

		this.sqlArchive = new File(filePath);

		String[] revTable = this.sqlEncoder.getTable();
		for (String sTable : revTable) {
			String curLine = sTable + "\r\n";
			byte[] bytes = curLine.getBytes(WIKIPEDIA_ENCODING);
			this.output.write(bytes);
		}

		this.output.flush();
	}
553027
private void writeArrayHeader(ByteBufAllocator allocator, ArrayHeaderRedisMessage msg, List<Object> out) {
        writeArrayHeader(allocator, msg.isNull(), msg.length(), out);
    }
50584
protected function writeHeaders()
    {
        if (headers_sent() === false) {
            $status = static::RESPONSE_STATUSES[$this->status];

            header("{$this->request->protocol} {$status}");

            foreach ($this->headers->all() as $key => $value) {
                header("{$key}: {$value}", false);
            }
        }
    }
1150494
def _write_header(self):
        """"""
        self.output_buffer += serialize_header(header=self._header, signer=self.signer)
        self.output_buffer += serialize_header_auth(
            algorithm=self._encryption_materials.algorithm,
            header=self.output_buffer,
            data_encryption_key=self._derived_data_key,
            signer=self.signer,
        )
120579
def write(self):
        """"""
        with open(self.path, 'w') as file_:
            file_.write(self.content)
1169623
def write
      begin
        buf = [ @flags, @length, @id, @crc].pack(FORMAT)
        crc = Zlib.crc32(buf, 0)
        @file.seek(@addr)
        @file.write(buf + [ crc ].pack('L'))
      rescue IOError => e
        PEROBS.log.fatal "Cannot write blob header into flat file DB: " +
          e.message
      end
    end
620255
private static void writeHeader(DataOutputStream out, 
                                  BlockMetadataHeader header) 
                                  throws IOException {
    out.writeShort(header.getVersion());
    header.getChecksum().writeHeader(out);
  }
1055959
protected void writeHeader()
		throws ConfigurationException, IOException
	{

		if (writer != null) {
			writer.close();
		}

		this.fileCounter++;
		String filePath = PATH_OUTPUT_SQL_FILES + this.outputName + "_"
				+ fileCounter + ".sql";

		SQLConsumerLogMessages.logFileCreation(logger, filePath);

		this.sqlFile = new File(filePath);

		this.writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(
		        new FileOutputStream(filePath)), WIKIPEDIA_ENCODING));

;



		String[] revTable = this.sqlEncoder.getTable();

		for (String sTable : revTable) {
			this.writer.write(sTable + "\r\n");
		}

		this.writer.flush();
	}
902324
def WriteHeader(self):
    """"""
    self._column_widths = {}
    bold = self._workbook.add_format({'bold': True})
    bold.set_align('center')
    for index, field_name in enumerate(self._fields):
      self._sheet.write(self._current_row, index, field_name, bold)
      self._column_widths[index] = len(field_name) + 2
    self._current_row += 1
    self._sheet.autofilter(0, len(self._fields) - 1, 0, 0)
    self._sheet.freeze_panes(1, 0)
1126576
def _dump_header(self):
        """"""
        with open(self._file, 'w') as _file:
            _file.write(self._hsrt)
            self._sptr = _file.tell()
            _file.write(self._hend)
1064037
def write_headers(self):
        
        hlist = []
        for h in self.headers:
            hlist.append("{}: {}".format(h.key, h.value))
        return hlist
221050
def write_to(io)
      deduplicate

      io.write(@header_entry.to_s)

      @entries.each do |entry|
        io.write("\n")
        io.write(entry.to_s)
      end
    end
954445
async def write_headers(self, status_line: str,
                            headers: 'CIMultiDict[str]') -> None:
        """"""
        # status + headers
        buf = _serialize_headers(status_line, headers)
        self._write(buf)
1047055
@Override
  public void writeHeader(RandomAccessFile file) throws IOException {
    file.seek(0);
    file.writeInt(FILE_VERSION);
    file.writeInt(this.pageSize);
  }
989045
def _write(self, to_write):
        
        self._file.write(to_write.encode(self._encoding or
                                         self._default_encoding))