removing parts of a string
Posted: Mon Nov 24, 2008 7:04 pm
How do you remove choice parts of a string.
For my chat program the program has to search each individual line for a specific word.
If the line is the one it wants it then has to be able to remove the letters before the comma and the comma itself.
example:
*the user entered the word hello
*the program searches through the text file and finds the right phrase
hello,how are you?
*it has to remove the hello and the comma.
thanks
For my chat program the program has to search each individual line for a specific word.
If the line is the one it wants it then has to be able to remove the letters before the comma and the comma itself.
example:
*the user entered the word hello
*the program searches through the text file and finds the right phrase
hello,how are you?
*it has to remove the hello and the comma.
thanks