Hello,
How would I get the directory and filename from the following string using C#:
string test = "[email protected], snap555.jpg, c:\users\test\desktop\snap555.jpg";
I only want to be able to get the "c:\users\test\desktop\snap555.jpg" from the string and turn it into another string.
The characters before the "," will always be different and different lengths such as: "[email protected], x.txt, c:\users\test\desktop\x.txt"
What is the easiest way to do this in c#?
Thanks.
t