File.writef

Writes its arguments in text format to the file, according to the format string fmt.

  1. void writef(A args)
  2. void writef(Char[] fmt, A args)
    struct File
    void
    writef
    (
    Char
    A...
    )
    (
    in Char[] fmt
    ,)

Parameters

fmt Char[]

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.

Throws

Exception if the file is not opened. ErrnoException on an error writing to the file.

Meta