carrie wrote: I'm trying to make a dialog based program that will allow someone to pick a text file, the program loads it up and then there will be a list of things. No probs on getting to pick the txt file but what I need is for the program to be able to notice duplicate entries in the txt file and then pick one of them out, ignoring the rest of the duplicates. Easy - let STL do the dirty work for you. If you store the information in an STL set, it will discard duplicates as you go. I've written an article on this, just search for 'graus map set' to find it. You can also read a text file into an STL container in just three lines of code - I show that in my STL articles as well. I don't see anything wrong with the string you're setting, but if you're getting an escape code erro,r chances are you tried to insert a \, and forgot to put two of them, as \\ is the code for \, as \ denotes the begining of an escape code, such as \n for newline, or \r for return. Don't feel silly, you should see some of the stuff I asked when I was starting. We all start somewhere. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002