Strings - Find And Replace

Started by
2 comments, last by waynesroom 21 years, 2 months ago
Basically, i need a string function that will replace every occurence of a character in a string with another. More specifically: I need to replace the ''/'' in a dir string e.g. "F:/Music/Anything.mp3" with "//" so it can be used as a file pointer. I was wondering if there was an str command to do this, maybe something along the lines of: str...(MyString, "/", "//"); I''ve looked through MSDN and havn''t been able to find anything. Can anyone help?
Advertisement
See my post here.
daerid@gmail.com
You can use forward (/) slashes as file name seperators, you don''t need a double slash. It''s only with back (\) slashes because they start escape sequences.

I don''t think there is a find and replace per se, but one of the functions like strstr might help out.

-Mezz
thanx daerid, thats a big help

This topic is closed to new replies.

Advertisement