<br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 8:48 AM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com">pdebruic@gmail.com</a>&gt;</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: &#39;Hello World&#39;. &quot;Write a string&quot;<br>
s nextPut: $!.             &quot;Write a single character&quot;<br>s cr.             &quot;Write a newline character&quot;<br><br>It&#39;s a bit wordy, but I think streams deserve a lot more credit than programmers give them.<br>
<br>If you&#39;re doing String concatenation:<br><br>myString := &#39;Hello, World!&#39;, String cr.<br><br>Alternatively, this is also valid code:<br><br>myString := &#39;This<br>is<br>a<br>multi-line<br>String!<br>&#39;.<br>
<br>Gulik.<br><br>-- <br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>