How do I change, replace or deleting a line in a text file using c++?
<p>How do I change, replace or deleting a line in a text file using c++?</p>

<p>I have a text file that contains login information for users ( username and password ) , for example : </p>

<pre><code>//file 
Jimmy jim1236
tom  tommy545
</code></pre>

<p>Now how can I write a program that allows users to change their own password after they log into the system? I have already done the login part. </p>
