Dear all,
Let's say i have a text file with the following line.
xxxxxtestxxxxxtest2xxxx (x represents a blank space)
How would I output the first word and ignore the second word?
Therefore the output shoud be 'test'.
I guess i would have to determine the length of the string, and check each character whether it is a character or space using isSpace() and isLetter(). But how do i ignore the 2nd word?
Any suggestion would be helpful
Creeder
[sig][/sig]
Let's say i have a text file with the following line.
xxxxxtestxxxxxtest2xxxx (x represents a blank space)
How would I output the first word and ignore the second word?
Therefore the output shoud be 'test'.
I guess i would have to determine the length of the string, and check each character whether it is a character or space using isSpace() and isLetter(). But how do i ignore the 2nd word?
Any suggestion would be helpful
Creeder
[sig][/sig]