+ 2
Reading data from file
https://code.sololearn.com/cSLT1yjG7SZN/?ref=app This is my code so far and itâs quite bare. I need help on reading data from a file that is given to me which is called âAgencies.txtâ . The assignment is this: â Ask the user for the input file name. Then, read ALL data from that file (the file has been structured where the first line is the Car Agency info, followed by 5 cars). The data have to be stored into arrays of Class type Objects. Iâve already started the function for it and I donât know how to finish it. Thank you
1 RĂ©ponse
+ 2
I have made the necessary changes into the file:
I hope it will work now: plz check
https://code.sololearn.com/cot2NkN3ob89/?ref=app