Perfect! I solved the problem! Actually I got more problems if a don't create the multiple data files, so I did this:
Code:
FILE *fp[101]; //number of files I need
char fname[25];
for ( k = 0; k < 101; k++){
sprintf(fname,"ros%d.dat", k);
fp[k] = fopen(fname, "w");
}
And at the end I do...
Code:
for ( i = 0; i < 101; i++) fp(fout[i]);
Thanks a lot for your sugestions.
About Gnuplot, I was calling it like this:
Code:
#define GNUPLOT_PATH "/usr/local/bin"
At the begining it worked, but then gnuplot don't show me something, or stored any graphics, so i made a little script which call the data files.