I have the following data streaming in from a serial device:

"Wxxx Fxxxxxxxx|ID S xxxxxx|ID E xxxxxx|Wxxx Fxxxxxxxx"

I need to parse it so that when the code see's the "|", it will do a carriage return and the data streaming in from the serial device will look like this:

Wxxx Fxxxxxxxx
ID S xxxxxx
ID E xxxxxx
Wxxx Fxxxxxxxx

I appreciate any help or code snippets you can offer. this is my first attempt at programming!

Regards,

Michael