readFile

Replacement for std.file.read.

  1. ubyte[] readFile(const(char)[] fileNameZ)
    nothrow @nogc
    ubyte[]
    readFile
    (
    const(char)[] fileNameZ
    )
  2. ubyte[] readFile(const(char)* fileNameZ)

Return Value

Type: ubyte[]

File contents, allocated with malloc. null on error. Note: the result file gets an additional terminal zero after the slice, so that it can be converted to a C string at no cost.

Meta