From: James Gray Date: 2009-04-27T11:06:04+09:00 Subject: Re: How to parse a "line"? On Apr 26, 2009, at 7:25 PM, Martin Sharon wrote: > Thank you Todd, but the number of the keywords are dynamic. > > and the array size is not fixed until program reads the first keywords > of the input line. > The line may be "3 tokyo newyork paris", also maybe > "6 toyota bmw honda GM Ford" > > So I can't hard coded this array in the program. > How can I parse the line? Did you try our code? All of our solutions work for all examples you've posted so far… :) James Edward Gray II