How to scan sentence of text, by one by one word? that is in a sentence, while scanning a data from first character,if it recognizes a space, then the data scanned before the space needs to be stored in one variable(say A) to process further with that word. again from the left word, it needs to scan again and store the second, third, fourth, ….. upto end of the sentence in the same variable named "A".
Example: "Hello world! All is Well" is the sentence. Now it needs to scan from the word "Hello",once if it finds space after hello, it should recognizes the "Hello" as a word and again needs to start scan after space,once it finds space, it recognizes the scanned characters as a word like" world". How to per form this? kindly help on this
Best Answer