Syntax Problems with " "

Hey guys, i am having problem in putting the str i want to search for using find().

I have a text file which hold data like this :

"ewcwecwcdwecwewewe"<eddwdwwee>""d"dsdad"d""dd ewfewfwe"wewe"

What the problem is , i want it to search for "d". the issue is , when i put it into the code below

string.find( ""d"dsdad"d"" , 0) ;

what happens is that , it is unable to read the variable to search for properly as it contains "" also. what can i do to solve this problem
 
cout << "use escape characters to have \"quotes\" in a string";
use escape characters to have "quotes" in a string 
Topic archived. No new replies allowed.