I need to read data from a file into an in-memory array but i'm unsure how to do it. The problem is i don't know how big the array is going to be. I store all the data into a structure as follows:
i succesfully tokenize the data into the required fields of my structure. But i am having problems storing them into my array.
I have a loop which goes through each line of the file and takes what i need.
I also am having problems mallocing the array, as i am unsure how something like that would be done as i have no idea how big my array is going to be.
Thanks for any help.