title: How Do I Delete Selected Item which is saved in a text file
body: <p>This Piece of code:</p>
  
  <pre><code>//Adds a user named server into the serverlist box
  serverListBox.Items.Add(this.serverTextBox.Text);
  //saves that user named server into a text file where the user can load the next time he/she uses the application.
  string path = @"C:\\Public Key Pin\UserServerData.txt";
  File.AppendAllText(path, this.serverTextBox.Text + "\n"); 
  </code></pre>
  
  <p>Saves the user named server (which is imputed into a Listbox) in a text file.</p>
  
  <p>Now how do I delete that selected item from the text file?</p>