I need to read variable-value pairs from a file. Some of the values are character strings, some are integers, and some need to be stored as shorts. I know how to use strtok to tokenize the lines read, and I also know how to convert to int using the atoi function. However, I don't know how to convert a character string to a short value. I was told that I can use fscanf somehow, but I haven't been able to figure out how to use it. Any help is greatly appreciated!