So I am given three .txt files, one with names, and the other two with before and after weights (integers) and I am supposed to create 3 arrays (each of size 10) to hold the information from these files.
In addition, I must also write a function to populate these arrays.
I am not sure exactly how to do this; specifically, I do not know how to transfer the information from the .txt files into the arrays using the void function.
This is what I have so far (I am new to programming, so I apologize in advance if this looks completely off):