title: c# Create text file with spaces between lines
body: <p>I would like to create new text file with spaces. for example:</p>
  <blockquote>
  <p>a</p>
  <p>b</p>
  <p>c</p>
  </blockquote>
  <p>This is my code, and I find for other simple way to create it (because I have lots of lines):</p>
  <pre><code>FileStream fs1 = new FileStream(@&quot;C:\myfile.txt&quot;, FileMode.OpenOrCreate, FileAccess.Write);
  StreamWriter writer = new StreamWriter(fs1);
  writer.Write(&quot;a&quot; + Environment.NewLine + &quot;b&quot; + Environment.NewLine + &quot;c&quot;);
  writer.Close();
  </code></pre>