Apples 5 6 1 20 18
tomatoes 8 3 4 2 3
Also what I know that this text will occupy only 15 chars, not more not less.(so apples occupies 6 chars and after that there are 9 spaces, but you cant see them because of html thingie in the forum, so visualize )
So how would I read those 15 chars of text into a string and then read the numbers?
I know how to read numbers when there are just numbers in file, but now what I have to do is read text assign it to a variable and also get all the numbers after the text.
There aren't many tutorials for pascal(well there are, but they all lack of sth.).
I've looked trough bunch of the tutorials, still no clue how to do this.
And yes, I must do this in pascal
This is not my homework, I'm trying to do an exam assignment from the last year.