how to write and read a file at same time
<p>What I am trying to do here is to find right place in a file and start writing. I gave a shot with fstream and got an error saying:  variable ‘std::fstream myfile’ has initializer but incomplete type</p>

<p>the code I declare it is:</p>

<pre><code>fstream myfile(FILENAME, ios::in|ios::out);
</code></pre>

<p>any comments? Or there is better way to handle this? thanks</p>
