how can i save only the last value of the path by split method
For eg: D:/Folder1/abc
OR
D:/Folder1/Folder2/abc
i need to save only "abc" as my value in string format where "abc" is my project name.
please help me how can i do this
i have try this method
string str1= "D:/Folder1/abc"
string[] split = str1.Split('/', ':');
for (int i = 0; i<split.Length; i++)
{
Response.Write(split[i].ToString());//Check here for getting the value..
}but its not working how can i save only the last value of the path
Thanks & Regards
Priti