title: C++ How do i delete a specify line from a textfile?
body: <p>As stated from my title, how can i delete a specify line from a textfile.
  My program has a HR user, which they can edit/remove users information.
  I am able to write into a file, but to delete from a specific line, i am clueless.
  Hopefully someone can give me an example of how to do it, thanks !</p>
  
  <p>A example of my textfile</p>
  
  <pre><code>user;pass;1234;John;1111
  user1;pass1;2345;May;2222
  user2;pass2;3456;Mary;3333
  user3;pass3;4567;Andy;4444
  hr;hr;5678;Jonathan;5555
  admin;admin;6789;Aili;6666
  user10;pass10;7890;eggy;9999
  </code></pre>
  
  <p>and so i want to delete the contents of user3 which is at line 4 of my textfile,when the user inputs the username, which is user3.</p>