Dj_Saturn
December 27th, 2008, 07:54 PM
Ok,
i get the path of a file from an openfiledialog and assign it to string^ path.
so the string may contain for example...: c:/folder/example.mp3
from my knowledge you cannot manipulate a string but make a new one with your desired changes so ...
i want to remove everything before the last '/' and better yet, remove the last '/' as well
so i would be left with example.mp3
would i use the trim method?
if so please explain how to do so.
thank you very much.
i get the path of a file from an openfiledialog and assign it to string^ path.
so the string may contain for example...: c:/folder/example.mp3
from my knowledge you cannot manipulate a string but make a new one with your desired changes so ...
i want to remove everything before the last '/' and better yet, remove the last '/' as well
so i would be left with example.mp3
would i use the trim method?
if so please explain how to do so.
thank you very much.