data processing split string by another string
Posted on 2004-08-17
Im reading the output from a serial port, it has an event whenever a new line is reached
so the output is buffored per line. the output looks something like
----- somedata some data
------ new data new
the sequence starts with -------, now I want to have a buffor where I oneventdata
it would add to the string I have the new data then phrase it looking for ------ the new sequence if there is one then the the thing would get processed. Now I tried looking for a split function that would allow the delimeter to be another string but couldnt find one. Can anyone help me?