Strings - Find And Replace
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?
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
I don''t think there is a find and replace per se, but one of the functions like strstr might help out.
-Mezz
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement