title: End-of-line identifier in VB.NET?
body: <p>What end-of-line identifier should I use (for example, for output to text files)?</p>
  
  <p>There are many choices:</p>
  
  <ul>
  <li>vbCrLf</li>
  <li>vbNewLine (apparently an alias of vbCrLf)</li>
  <li>ControlChars.CrLf</li>
  <li>ControlChars.NewLine</li>
  <li>Environment.NewLine</li>
  <li>A static member in some C# class in the application (requires mixed-language solution): public static string LINEEND = "\r\n";</li>
  <li><code>Global.Microsoft.VisualBasic.ChrW(13) &amp; Global.Microsoft.VisualBasic.ChrW(10)</code> (generated by the Visual Studio designer, at least <a href="http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_Basic_Express" rel="noreferrer">Visual Basic 2005 Express Edition</a>, for a TextBox with property <em>Multiline</em> set to True when <kbd>Shift</kbd> + <kbd>Return</kbd> is used while editing property <em>Text</em>.)</li>
  </ul>
  
  <p>What is best practice?</p>