title: How would I access a txt file and split the links
body: <p>Alright, I have a program that grabs links off of a website and puts it into a txt BUT the links aren't separated onto their own lines and I need to somehow do that without having to manually do it myself, here is the code used to grab the links off of the website, write the links to a text file then grab the txt file and read it. </p>
  
  <pre><code>        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
      {
          var client = new WebClient();
  
          string text = client.DownloadString("https://currentlinks.com");
  
          File.WriteAllText("C:/ProgramData/oof.txt", text);
  
  
          string searchKeyword = "https://foobar.to/showthread.php";
          string fileName = "C:/ProgramData/oof.txt";
          string[] textLines = File.ReadAllLines(fileName);
          List&lt;string&gt; results = new List&lt;string&gt;();
  
          foreach (string line in textLines)
          {
              if (line.Contains(searchKeyword))
              {
                  results.Add(line);
              }
              var sb = new StringBuilder();
              foreach (var item in results)
              {
                  sb.Append(item);
              }
  
              textBox1.Text = sb.ToString();
  
              var parsed = textBox1;
  
              TextWriter tw = new StreamWriter("C:/ProgramData/parsed.txt");
  
              // write lines of text to the file
              tw.WriteLine(parsed);
  
              // close the stream     
              tw.Close();
  
  
  
  
  
          }
      }
  </code></pre>