File management in C++
<p>I have a requirement for reading, updating and deleting a file. I want to write a class for this. 
For example</p>

<pre><code>class FileManagement {
private:
    fstream myFile;

public:
    void read();
    void update();
    void delete();

};
</code></pre>

<p>My question is while updating is it possible to delete only one line in a file in C++ and should be portable, if it is possible how we can achieve this.
Other question is if above option is not possible how we can achieve the above.</p>

<p>In C++ how we can delete a file in portable way.</p>

<p>Thanks!</p>
