You could look at the strtok() function. This function takes a string and a character as arguments, splitting the string when it encounters the char.
Niek
[edit]
Here's a link with the exact program you want
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403