title: Read second line and save it from txt C#
body: <p>What I have to do is read only the second line in a .txt file and save it as a string, to use later in the code.</p>
  
  <p>The file name is "SourceSetting". In line 1 and 2 I have some words</p>
  
  <p>For line 1, I have this code: </p>
  
  <pre><code>string Location;
  StreamReader reader = new StreamReader("SourceSettings.txt");
  {
      Location = reader.ReadLine();
  }
  ofd.InitialDirectory = Location;
  </code></pre>
  
  <p>And that works out great but how do I make it so that it only reads the second line so I can save it as for example:</p>
  
  <pre><code>string Text
  </code></pre>