How can I read values from a text file and store it into a structure array?

How can I write the code such that -

  1. I am reading the file which may contain numbers such as 23 34 45 56.
  2. After reading the contents of the file, the contents of the file get stored to struct array such as struct abc in the above code...
  3. struct abc later gets called under the int main().