Second example found at https://dlang.org/library/std/stdio/file.readf.html does not compile.
The page seems to be outdated. The example on https://dlang.org/phobos/std_stdio.html#.File.readf works.
https://github.com/dlang/ddox/issues/242
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/3987 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB