newStdinReader

Creates a new FileReader using the GC reading from stdin using a platform optimized implementation or StdFileReader if none is available.

The created instance can then be started using the start method and stopped at exit using the stop method.

newStdinReader
()

Examples

auto input = newStdinReader();
input.start();
scope (exit)
    input.stop();

Meta