[Issue 6993] File.byLine runs on an empty file, fails enforcement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 23 09:27:41 PST 2011


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



--- Comment #3 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-11-23 09:26:47 PST ---
Oh. I agree completely. I think that byLine should just be empty when the file
is empty, so no iteration occurs. I don't know what the exact details of
opening the file are, but I don't see why an empty file should throw when you
try and open it. Certainly, File's docs don't say anything of the sort. In
Linux however, I ended up hitting an assertion rather than the exception that
you hit, so there may be system-dependent behavior going on.

-- 
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