J
John Smith
I want to read data from a file and assign it to a dynamically
allocated array. I don't know the number of data in advance. My
approach has been to read the file twice, the first time to
determine its size, the second for the actual assignment. Is
there a more efficient way?
allocated array. I don't know the number of data in advance. My
approach has been to read the file twice, the first time to
determine its size, the second for the actual assignment. Is
there a more efficient way?