<div class="gmail_quote">On Fri, Jan 6, 2012 at 03:09, Alexander Grayver <span dir="ltr">&lt;<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is not always convinient to store everything in one file, but in some cases I do want to use it. I haven&#39;t found any examples on that. Do I have to use FILE_MODE_APPEND and then write? What happens if file doesn&#39;t exist?</blockquote>
</div><br><div>You just create a viewer and then call MatView(), VecView(), etc, repeatedly for each object you want to put in the file (e.g. once per time step). No need for FILE_MODE_APPEND and unless you want to append to an existing file.</div>