|
From: Ethan M. <merritt@u.washington.edu> - 2003-11-25 20:32:06
|
On Tuesday 25 November 2003 05:58, Petr Mikulik wrote: > > <stdio.h>: FILE *tmpfile(void) > > Unfortunately this does not provide name of the file which I could use > in plot 'tmp_file1' You wouldn't need a file name if you wrote the data as an in-line command= : plot '-' xx xx xx xx xx xx E and then passed the FILE pointer directly to load_file(). So the code would look like: =09pre1 =3D tmpfile(); data =3D tmpfile(); post1 =3D tmpfile(); =09fprintf(pre1, buf1);=09/* write preliminary commands */ =09fprintf(data, buf2);=09/* write inline data for plot */ =09fprintf(post1, buf3);=09/* write any trailing commands */ =09rewind(pre1); rewind(data); rewind(post1); =09load_file(pre1, ...); =09load_file(data, ...); =09load_file(post1, ...); > =09save set 'tmp_file2' A similar trick should work here: =09save_set(savefp=3Dtmpfile()); =09... =09load_file(savefp, ...); --=20 Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Box 357742 University of Washington, Seattle, WA 98195 |