http://qs1969.pair.com?node_id=280292


in reply to Re: Re: Cross Platform end of Line characters
in thread Cross Platform end of Line characters

Well, yes and no. Mac, Win and Linux all use ASCII, which defines \n to be \012, if the document in question is in a non-ascii format, then a larger conversion than just lineends are probably needed anyway...

T I M T O W T D I

Replies are listed 'Best First'.
Re: Re: Re: Re: Cross Platform end of Line characters
by TomDLux (Vicar) on Aug 02, 2003 at 19:52 UTC

    The ASCII table has no concecpt of '\n', that's from the C programming language.

    ASCII defines linefeed as \012.

    Unix uses a linefeed as the line terminator in text files, C denoted the linefeed, or new line code as \n. But when Unix was ported to other platforms, it became increasingly important to handle text files from other platforms, with different line terminator / line separator sequencecs.

    --
    TTTATCGGTCGTTATATAGATGTTTGCA