09-24-2007 07:34 AM
09-24-2007 07:55 AM
09-26-2007 09:53 AM
A warning about using strtok. strtok treats multiple occurances of the seperator as a single occurance. For instance if the file contains "one,two,,four" and you use the "," as the seperator, you will only get 3 token:
0 = one
1 = two
3 = four
This may be what you want, but you would need to be aware of this behavioral difference between scan and strtok.