readFile

Reads a file, terminate the program on error

  1. FileBuffer readFile(Loc loc, const(char)* filename)
  2. FileBuffer readFile(Loc loc, const(char)[] filename)
    readFile
    (,
    const(char)[] filename
    )

Parameters

loc
Type: Loc

The line number information from where the call originates

filename
Type: const(char)[]

Path to file

Meta