I wouldn't use strtok (mostly because I wrote the CQStringParser class). If you're using CStdio, you're using MFC. If you're using MFC, CQStringParser would be abetter choice because it parses the strings for you without you having to do anything but instantiate an object with a string and a delimiter character. Check out that class and see if it doesn't work better than strtok. Besides all that, CString has a Replace() function that can replace all instances of one character with another. "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001