just use a do while loop and test every charcter backwards untill you come across "\". You can do this with the mid(), then cut the string required using pointers (i%) for the number of characters required.

any probs send e-mail "[email protected]"