title: c# - Get a string line from a text file and show the text in a label
body: <p>I'm studying C# and creating this program to learn a bit more.<br>
  My program catchs the information that you have input and save it into a text file. In this part, is alright, but I'm having issues on load the file and show the information inside it.<br>
  Example, in the program I have the text boxes for user input his family information:<br>
  <i>Dad text box:</i><br>
  <i>Mom text box:</i><br>
  <i>Brother text box:</i><br>
  The text box input is something like:<br>
  <i>Dad text box: MyDad</i><br>
  <i>Mom text box: MyMom</i><br>
  <i>Brother text box: MyBrother</i><br>
  When the creation process of file starts, I have in the file the output that I want:<br>
  <i>MyDad<br>
  MyMom<br>
  MyBrother</i><br>
  Okay, now I need to load these informations from the file and write it in another labels, like:<br>
  <i>Your Dad is: according to example, I want "MyDad" shown here<br>
  Your Mother is: according to example, I want "MyMother" shown here<br>
  Your Brother is: according to example, I want "MyBrother" shown here<br></i>
  In the click event of the button to show the informations of the file I have this to check if the file was created and, if was, read it:</p>
  
  <pre><code>string path = @"C:\Users\Hypister\Desktop\Family.txt";
  if (File.Exists(path))
              {
                  using (StreamReader sr = File.OpenText(path))
                  {
                      //Here I need the function to get the lines and show it in respective labels.
                  }
              }
              else
              {
                  MessageBox.Show("The file doesn't exists. Data cannot be loaded.");
              }
  </code></pre>
  
  <p>But I cannot get the line for Dad, Mother and Brother from the file to show.<br>
  I hope someone can answer this and help me to gain more knowledge.<br>
  Thanks all in advance!</p>