I'm writing a program that reads a text file and puts it into an array of structs. There can only be one transaction per line in this format:
custNumber firstName lastName numItemsPurchased amtSpent
What I dont understand is how do you put the data in the file into an array of structs?