in my program i have a struct called Packages which contains the members weight, length, width and depth. This data is in a file whose first line is the number of packages, and then the lines after are the package information, each package having its own line. I have to use one function to read in the number of packages, allocate the correct number of Package struct elements in the array and then have a loop which calls another function that is used to get the information for a single package, so it loops untill i have each package in the array. I am very confused on how to do this.