I want to read info from 2 seperate files but i have to store them in an array of structures. How do i read and store the info from the second file without overwriting the info stored from the first file? It should also indicate in the memory what files the data were read from. I'm lost please help :(
Just append the data from the second file to the vector (which is what you should use instead of an array).
If it's relevant which file the data was read from, add an appropriate member to your data structure.