Zitat von Torquil Macdonald Sørensen <[EMAIL PROTECTED]>: [...] > > I have included a test program below. The part about piping the file > into an > ofstream is not in this test program, but that has nothing to do with > the > behaviour I'm discussing. I thought that a "1.jpg" would exist after > the > program exits, but that is not the case. The file only exists until I > delete > it in the program, it is not recreated at the next plbop(): > [...]
When looking into the plplot-Lib I can see, that plbop() makes a new page. It does not open a new file. When the filehandle on the output file is open, then writing to the file means you write to the same file, even if it is removed. That you remove ot only means, it is not possible to see it with ls, because the entry in the directory is removed. The file will be removed, when all filehanldes on that file will be closed. This means: You have to say plplot that it has to write to another file (new name), so that it can close the old file. As long as you do not change the filename, I assume, plplot-lib will not close the filehandle and so both "pages" will be written to the same file. The first page will be written and you can see the file with ls; the sencond page will be written to the same file, even if you think it is deleted. There will be no new file created! Hope this helps, Ciao, Oliver ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general