I need to read in a file that looks like this
Name Weight
Name2 Weight2
etc...
I opened the file to read from. I set up a string variable to read the name and an integer variable to read the weight but when it reads the name it also reads the weight and stores both in the string character.I guess that I need to set up an array to read the data into I just dont know where to start. Could some one give me a little advice?
Name Weight
Name2 Weight2
etc...
I opened the file to read from. I set up a string variable to read the name and an integer variable to read the weight but when it reads the name it also reads the weight and stores both in the string character.I guess that I need to set up an array to read the data into I just dont know where to start. Could some one give me a little advice?