title: Write text to file line by line
body: <p>I'm trying to write some text to a file, and here's what i tried :</p>
  <pre><code>text = &quot;Lorem Ipsum is simply dummy text of the printing and typesetting &quot; \
                    &quot;industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,&quot; \
                    &quot; when an unknown printer took a galley of type and scrambled it to make a type specimen book.&quot;
  target = open(&quot;file&quot;, 'wb')
  target.writelines(text)
  </code></pre>
  <p>And I get an empty file.
  How can I do this?</p>