http://d.puremagic.com/issues/show_bug.cgi?id=2670
Summary: std.file.read() should read files of 0 length Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzi...@digitalmars.com ReportedBy: bugzi...@digitalmars.com Some files, such as: char[] thing = cast(char[])std.file.read("/proc/sys/kernel/osrelease"); stat as having 0 size, and so thing[] comes back with 0 length. But if the file is read anyway with C's read(), there is data in it. --