Reads in a file and produces an index of variable names.