Need direction in starting a structure with arrays from a file

The assignment wants us to create a structure using data from an outside file to create an array. How would I go about doing this? Would I read directly into the structure? Or use a separate function?
If the latter, how do I connect the separate function with the structure?
Topic archived. No new replies allowed.