title: How can I get only the first line from a string?
body: <p>example:</p>
  
  <pre><code>string str = "Lorem ipsum dolor sit amet, 
  consetetur sadipscing elitr, sed diam nonumy eirmod tempor 
  invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.";
  
  string firstline;
  </code></pre>
  
  <p>How can I get just the first line from the string "str" into the string "firstline"?</p>