Is there any good way to read a file in a way that is independent of
the newlines used in that file?
Mac typically uses CR line endings. Unix typically uses LF line
endings. And DOS Network (eg HTTP, FTP, etc) typically use CRLF
line endings.
Ideally, it would be possible to set $/ to
On Mon, 18 Feb 2002, Peter N Lewis wrote:
Does anyone know a good trick?
Would it be worth skimming over the source code for a text editor for
ideas? Vim can handle pretty much any line endings scheme you throw at
it, and I'd assume Emacs can too. Maybe it would help you to look over
what
On 2002.02.18, at 14:47, Chris Devers wrote:
On Mon, 18 Feb 2002, Peter N Lewis wrote:
Does anyone know a good trick?
Would it be worth skimming over the source code for a text editor for
ideas? Vim can handle pretty much any line endings scheme you throw at
it, and I'd assume Emacs can