Hey everyone,

I'm trying to store file path's within a database. The problem I'm having is that the file path contains a backslash and when put into the database, it causes a problem. So I need to add an escape character into the string. I was wondering if anyone could help me out with this. I attempted to write a function that would iterate through the characters in the string and input a slash when it finds a slash, but the problem is that the string is a set size and I'm unsure how to add a new character into a preexisting string. Anyone have any suggestions?

Thanks,
Barefoot

Just for clarity can you post a example of the problem string?

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.