[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:16:22 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6993
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-11-23 09:15:25 PST ---
(In reply to comment #1)
> I don't see any reason why an exception would be thrown from File's constructor
> for an empty file. It certainly doesn't say that it does. The problem is that
> ByLine clearly isn't set up to handle empty files correctly.
>
> Duplicate of Bug# 6944
>
> *** This issue has been marked as a duplicate of issue 6944 ***
I agree, but the file handle was closed so I *assumed* that meant the file was
not opened. I would rather have byLine not iterate than throw just because a
file is empty.
--
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