OutBuffer.writefln

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

class OutBuffer
void
writefln
(
Char
A...
)
(
scope const(Char)[] fmt
,)

Parameters

fmt const(Char)[]

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");

See Also

Suggestion Box / Bug Report