I have a string path = c:\inetpub\wwwrroot\images\pdf\admission.pdf
I am using this
path = path.LastIndexOf("\\").ToString();
path = path.Substring(path.LastIndexOf("/") + 1);
i want to get:
c:\inetpub\wwwrroot\images\pdf
c:\inetpub\wwwrroot\images\pdf\admission.pdf
now i want to get the admission.pdf from this string path how can i do it?
IO.Pathfunctions. Doing this manually withString.Substringis just asking for trouble.