<div class="gmail_quote">On Fri, Jan 6, 2012 at 03:09, Alexander Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></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't found any examples on that. Do I have to use FILE_MODE_APPEND and then write? What happens if file doesn'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>