evaluating a string
Posted on 2007-10-19
i have a function that opens a text file and reads off one line at a time. the line of text is stored in a string.
an example of a line within the file is:
paint box 4 <110 110> <110 190> <190 110> <110 110>
however the problem is that not all values/words will be separated by one white space, there can be an unknown number of them at once.
the aim is to verify the first two words, then stick the rest of the numbers into variables.
whats the easiest way i can do this?