[Newbies] \n equivalent?
Michael van der Gulik
mikevdg at gmail.com
Sun Aug 2 22:01:01 UTC 2009
On Mon, Aug 3, 2009 at 9:20 AM, Paul DeBruicker <pdebruic at gmail.com> wrote:
> This is all very interesting.
> 'Character cr asciiValue' is 13
> 'Character lf asciiValue' is 10
This gets complicated.
See http://en.wikipedia.org/wiki/Newline for a better summary than I could
write. This should be required reading for anybody working with
multi-platform text files.
Perhaps we need Stream>>newline or something?
Squeak follows the Macintosh OS9 convention (refer Wikipedia article above
under "Representation"). Arguably we should perhaps start using CR+LF like
Internet protocols do. Or perhaps the Unicode suggestion of... er... yea,
one of the options shown on that page.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners