> I'm thinking to include a new function.
> I'm be able now to read and copy the values from
> the "source" file in the synth input fields. I can do it
> from the beginning
> to the end of the "source" file
> and repeat the process.
> But there isn't the possibility to return a previous value of the
> file and copy it in the input field before EOF.
I'm not entirely sure what you are asking for - but if you need to jump
back to some previous place in the input file, what you do is something
like this:
- at each "interesting" place in the input file, you use ftell() to
record the file position.
- to jump back to that position, you use fseek()
So, in your case, each time you read in a line of your synth params, you
might also record the file position associated to that parameter set...
(dodgy pseudo code follows...)
new_pos = ftell(input_file);
pc = fgets(input_file, 1024, fp);
...etc...
And if you then want to jump back to that position later, you would do:
fseek(input_file, new_pos, SEEK_SET);
And that should pretty much do it. I think.
Or perhaps I'm answering the wrong question?
Anyway, hope that helps you,
--
Ian
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk