boost c++ library object serialization problem
<p>The error was:</p>

<pre><code>terminate called after throwing an instance of 'boost::archive::archive_exception
what(): input stream error
Aborted
</code></pre>

<p>I have these code in my main.c</p>

<pre><code>Object *obj = new Object();
{
    std::ifstream ifs("FILEX");
    boost::archive::text_iarchive ia(ifs);
    ia &gt;&gt; *obj;
}
</code></pre>

<p>"FILEX" may or may not exist before, is this the cause of the error? or it is
because I implemented the serialize method of Object class in a wrong way?</p>
