A safer File.readln

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 22 17:55:59 PST 2017


On 1/22/17 8:52 PM, Chris Wright wrote:
> The /dev/zero version at least could be solved by calling stat on the file
> and limiting reads to the reported size.

I recall reported size for special files is zero. We special case 
std.file.read for those. -- Andrei


More information about the Digitalmars-d mailing list