Why do you need to do this? Explain how your going to apply it and then maybe I can lead you to an alternative.
Joined: May 25, 2005
my problrm is first i will read text file, in that text file i want to count the occurance of given word,(given word in the sense, i will get the word from user).if that word occur in the text file, i want to replace that word with someother word. till now vat i have done in my program is, i read a text file, so the content of the text file is string, i was trying to string to string, so that i can put the string array in loop, and fine for the occurence of the string, can u suggest someother idea
So you actually don't want an array with *one* string, but an array that in every string contains one word of the original string?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus