title: writing array values to file C#
body: <p>I am trying to write the values of my array to a text file, but my output isn't cooperating.</p>
  
  <p>my code</p>
  
  <pre><code>using (StreamWriter outputFile = new StreamWriter(@"C:\Users\fakeuser\Desktop\C#\New Text Document.txt"))
          {
              string[] values = { "Test", "People", "Owls", "Bully"};
              foreach (string line in values)
                  outputFile.WriteLine(values);
  </code></pre>
  
  <p>this is the output I get</p>
  
  <p><a href="https://i.stack.imgur.com/aReTp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aReTp.jpg" alt="enter image description here"></a></p>
  
  <p>What am I missing here?</p>