title: Winform split up string in a text box
body: <p>Sorry, newb question that I can't seem to work out.</p>
  <p>I'm connecting to a server via a php file that is return a list of the files held on there like so:</p>
  <blockquote>
  <p>511157.jpg|Koala.jpg|VIDEO0031.3gp|test_folder.folder</p>
  </blockquote>
  <p>However I want my text box to display them like so</p>
  <blockquote>
  <p>511157.jpg</p>
  <p>Koala.jpg</p>
  <p>VIDEO0031.3gp</p>
  <p>test_folder.folder</p>
  </blockquote>
  <p>I've been trying this at the moment but it isn't doing what I'm wanting it to do:</p>
  <pre><code>textBox1.Text = string.Join(Environment.NewLine, result);
  </code></pre>
  <p>I know this is a simple thing to do, but I can't seem to get my head to function properly. Could someone please help me out?</p>
  <p>I should note I have no idea what the files will be on the server. I'm getting this information by calling the following:</p>
  <pre><code>  using (var client = new WebClient())
          {
               result = client.DownloadString(&quot;http://server.foo.com/images/getDirectoryList.php&quot;);
          }
  </code></pre>
  <p>Anything could be on this.</p>