Hi Guys,

I'm trying to remove all the special characters within a file using the code below but I need to remove also the doble quotes " but what should I use to enclose the characters. I've been looking but can't find. Thanks.

while (sep != 0)
{
sep = strpbrk(line, "\<=->/'");
if (sep != 0)
*sep = ' ';
}

use the escape sequence character. and to get the '\' you need two of them

sep = strpbrk(line, "\\<=->/'\"");

hi There,

I tried but I'm getting:
unknown escape sequence '\<'

yes, I knew that would happen. Please look at my post very carefully because I showed you the correction -- two '\' characters.

Thanks you are a legend it works now. thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.