> > I am in your csi2131b class and I had a question about question 1 of the > assignment. Regarding the class which you create to store the records, are > you supposed to define the number of records. or can there be an unknown > number of records? > > If there are an unknown number of records, it becomes very difficult. What > other options do we have to store the records into memory? > > Thanks, Hello. Your program should not only work for a fixed number of records, file sizes may vary. Two possible solutions: 1) Decide on a maximum size your program can accept, and use that number for size determination. But you stil have to determine the actual number by reading the records until the file ends (the actual number has to be stored, since you will need). 2) Seek to the end of the file (using method seekg), discover the file position (using method tellg), based on the record length, discover the number of records. Lucia