[Issue 5378] File.byLine terminator string
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 16 01:40:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5378
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thecybershadow at gmail.com
--- Comment #3 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-03-16 10:40:03 EET ---
Would it be acceptable if we special-cased byLine to strip a trailing \r if the
terminator is \n?
Often, the programmer doesn't know beforehand if the line terminator of a text
file will be \r\n or \n. A behavior close to that of splitLines would be more
useful than forcing the programmer to choose an exact terminator sequence.
--
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