[Issue 6944] stdio.File.byLine can't handle an empty file

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 13 20:28:20 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6944



--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-11-13 20:27:38 PST ---
The simplest workaround that I've found is to use check whether
std.file.getSize returns a value greater than 0, but I don't know if that's
technically sufficient, and even if it is, I'm not sure that that's what should
be done internall to ByLine. It _does_ allow you to avoid AssertErrors until
the problem is fixed though.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list