You need to start reading the descriptions for the System::String methods in msdn so that you can learn how to look up the method(s) you need to solve your problems. What you need is a method that will locate (or find) the last '\\' in the string then another method that will take the substring of all the rest of the characters.
Thank you for this tips. I really want and am trying to read and understand msdn examples as it is very good.
I have used Substring() wich is okay for me here. I have managed to take all directory away to I only have Text.txt left in:
What I am trying is to take .txt away and from what I understand from msdn I will "Split" this like I have tried in the code. The code compiles but the program wont start.
My thinkingsteps from this code is that first files4 is splitted so .txt dissapear, then converted to a String() and then Substring it with the remaining.
Where am I thinking wrong here. ?