How about fscanf()'ing each line read directly into an element of INST[] instead of doin' it in 2 steps.