title: String.Split on VB.NET
body: <p>I am trying to do a String.Split on VB.NET and it doesn't appear to work. Appreciate any help to see what I am missing:</p>
  
  <p>In C#:</p>
  
  <pre><code>sFileContents = File.ReadAllText(f.FullName);
  sLines = sFileContents.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
  </code></pre>
  
  <p>In VB.NET:</p>
  
  <pre><code>sFileContents = File.ReadAllText(f.FullName)
  sLines = sFileContents.Split(New String() {"\r\n"}, StringSplitOptions.RemoveEmptyEntries)
  </code></pre>
  
  <p>In C# I get the number of lines split correctly and in VB.NET I only get 1 line.</p>
  
  <p>Thanks</p>