i am trying to take text already in a file and store them into two different arrays. One array will be the name and the other a test score.
i am not sure if my logic is even correct but i have problems getting the info into two different arrays. The text file has a space between the name and the score, my understanding is that the space would be null breaking point at which the taking in of info will stop.
I tried quite a few things with no success but i have a new idea but ran into an error using strlen which said that it cannot convert a char to a conts.
i would like to know if my logic/approach is correct and why i have this problem with strlen.
thank you for your response but i have tried that and i still have the same error unless there is something else i am suppose to change along with that
Could you post an example of the text you are trying to use with this program? Because this is my first time on this forum, I'll try my best to help you out, bro :)