> created, now, all I need, is a way to
> retrieve information from a file.
> <Field name>:<Value>
>
> the ":" in the middle is the separator,
> and <Value> can be either numbers or
> characters.
> I can figure it out, how to store the
> both variables once retrieved ( I plan on
> using struct ), all I need a sample on
> how to read the file, and retrieve both
> <Field> and <Value>
> P.s. Does anybody know of a program I can
> use as an example ( with source, of course ).
I do this in aumix:
for (j = TRUE; (!(j == EOF) && (j)); j = fscanf(setfile,
"%[^:]:%3u:%3u:%1c\n", tmpstring, &left, &right, &recplay)) {
The file contains lines like:
vol:80:75:P
bass:60:60:P
treble:0:0:P
If you want the rest of the code, look on
http://jpj.net/~trevor/aumix.html .
___
Trevor Johnson