YOUNGCODGER
Programmer
Hi,
I am now coming back to 'C' after years away. My first task is to process an ASCII file of data. Only records that start with one of ten characters are required - the rest can be disregarded. So after doing an 'fgets' I need to check the first character. Testing one at a time against the ten seems messy - is there an elegant solution?
Regards,
YoungCodger