hey everyone. im new to c++. This is my first semester. I'm stuck with some work. I'm supposed to import data from a file, search for the minimum and output the results to another file. Im able to do the coding but i need help in how to import the data to an array. The text file contains runner name, club, age and time for 500m, 1000m, 1500m, 2000m. The content is separated with ';'. This is confusing me alot. My lecturer is not the friendly type to explain stuff. He gets mad when we ask questions. Please help me guys
first off all, create an array of structure where the members will be name, club, age etc. Then use the fread() function to get the details from that file and finally from that array of structure search for the minimum and write it to the other file using fwrite() or fprintf() whatever you like.