title: How to delete a line from a text file with java using scanner
body: <p>I have text file called BookingDetails.txt</p>
  
  <p>inside the file there's a line of records</p>
  
  <pre><code>Abid  Akmal  18/11/2013  0122010875  Grooming  Zalman  5  125.0  Dog
  </code></pre>
  
  <p>It goes from </p>
  
  <pre><code>First name: Abid, Last name: Akmal, Date, phone number, type of services, pet name, days of stay, cost, and type of pet.
  </code></pre>
  
  <p>I want to create a user input function in which when the user enters the first name and the last name, the whole line is deleted. But note that it will only affect that particular line as they will be more booking entry in the text file.</p>
  
  <p>This is only a part of my program that I don't know how to do. I'm stuck here basically.</p>
  
  <p>The program will look like this.</p>
  
  <p>Welcome to the delete menu:</p>
  
  <p>Enter first name: Bla bla bla
  Enter last name: Bla</p>
  
  <p>Then a message will come out saying record has been deleted.</p>