OutBuffer.writefln

Formats and writes its arguments in text format to the OutBuffer, followed by a newline.

  1. void writefln(const(Char)[] fmt, A args)
  2. void writefln(A args)
    class OutBuffer
    void
    writefln
    (
    alias fmt
    A...
    )
    ()

Parameters

fmt

format string as described in std.format.formattedWrite

args A

arguments to be formatted

Examples

OutBuffer b = new OutBuffer();
b.writefln!"a%sb"(16);
assert(b.toString() == "a16b\n");
OutBuffer b = new OutBuffer();
b.writefln("a%sb", 16);
assert(b.toString() == "a16b\n");

See Also

Meta