You can try this where 20 in %20 is the length of string you need to read.
But this isn't safe so you should probably try an another method.

fscanf(file,"%20s %lf", struct_ptr[1].name,...