<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 8:48 AM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi -<br>
<br>
What Character or String is equal to \n in C or Python? Thanks<br>
</blockquote></div><br><br>I remember wondering about this when I was first learning Smalltalk too.<br><br>You do stuff like:<br><br>s := WriteStream on: (String new: 100).<br>s nextPutAll: 'Hello World'. "Write a string"<br>
s nextPut: $!. "Write a single character"<br>s cr. "Write a newline character"<br><br>It's a bit wordy, but I think streams deserve a lot more credit than programmers give them.<br>
<br>If you're doing String concatenation:<br><br>myString := 'Hello, World!', String cr.<br><br>Alternatively, this is also valid code:<br><br>myString := 'This<br>is<br>a<br>multi-line<br>String!<br>'.<br>
<br>Gulik.<br><br>-- <br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>