Well, I like this idea as well, but not all lines are formated the same, take for instance the default extensions settings:
[extensions]
n0=defaultEXTDIR:download\
n1=*.wav,*.mid,*.mp3,*.wma,*.oggEXTDIR:sounds\
In this case, $settings(extensions,n1,5) would return "*.oggEXTDIR:sounds\" and this isn't all that right. Instead, I was going to let the scripter figure out how each entry was to be formated.
But this does bring to mind two more things that would be nice:
- $settings(section).0 would return the number of entries for that section, and
- $settings(section).x would return the name of the xth entry for said section, where x is an integer from 1 to the value of $settings(section,0)
[edited notes]I know this was already replied to, but changing a bit, the first second idea was previously $settings(section,0) but I wanted to change the records[/edited notes]