I
I. Myself
This is about reading the .ini files which are used in several of our
projects.
Currently, the actual read of each line of the file is with this statement:
fscanf(file, "%s %s", name, value); /* reads two strings from .ini
file */
This works, but it does not allow any comments to the right of the two
strings.
I would like to allow the .ini file to have long comments on the right.
Even better would be to allow additional lines of commentary also. The
computer should ignore the commentary, and just read the initial two
strings on each line.
Can anyone tell me how to do it?
Thanks,
Mitchell Timin
--
I'm proud of http://ANNEvolve.sourceforge.net. If you want to write software,
or articles, or do testing or research for ANNEvolve, let me know.
Humans may know that my email address is: (but remove the 3 digit number)
zenguy at shaw666 dot ca
projects.
Currently, the actual read of each line of the file is with this statement:
fscanf(file, "%s %s", name, value); /* reads two strings from .ini
file */
This works, but it does not allow any comments to the right of the two
strings.
I would like to allow the .ini file to have long comments on the right.
Even better would be to allow additional lines of commentary also. The
computer should ignore the commentary, and just read the initial two
strings on each line.
Can anyone tell me how to do it?
Thanks,
Mitchell Timin
--
I'm proud of http://ANNEvolve.sourceforge.net. If you want to write software,
or articles, or do testing or research for ANNEvolve, let me know.
Humans may know that my email address is: (but remove the 3 digit number)
zenguy at shaw666 dot ca