writef

Writes formatted data to standard output (without a trailing newline).

  1. void writef(A args)
    void
    writef
    (
    alias fmt
    A...
    )
    ()
  2. void writef(Char[] fmt, A args)

Parameters

fmt

The format string. When passed as a compile-time argument, the string will be statically checked against the argument types passed.

args A

Items to write.

Note: In older versions of Phobos, it used to be possible to write:

writef(stderr, "%s", "message");

to print a message to stderr. This syntax is no longer supported, and has been superceded by:

stderr.writef("%s", "message");

Meta