I have a problem which I presume is simple, but I can't figure it out.
I have a program which reads strings from a text file, in order to determine a person's name, and then it uses specific parameters depending on their name. Code example:
Code: Select all
If name$ = "ANDY" : voice$ = "1" : pitch = 10: speed = 12 : EndIf
If name$ = "BOB" : voice$ = "7" : pitch = 8: speed = 11 : EndIf
If name$ = "CHRIS" : voice$ = "4" : pitch = 7: speed = 8 : EndIf
If name$ = "DAVID" : voice$ = "8" : pitch = 9: speed = 10 : EndIf
ANDY,1,10,12
BOB,7,8,11
CHRIS,4,7,8
DAVID,8,9,10
However - the names would change from time to time, and the list would get shorter and longer (sometimes there might be 12 voices, other times there might be 16 voices, etc.)
How can I get a config file working with this? Any advice is greatly appreciated!
Thanks
Will