I am having the following path on the string Say "C:\\Test\\SubTest\\a.jpg".
I need to seperate the folder name and file name seperatly.
Thanks.
There's built in method in the System.IO.Path class
string fileName = System.IO.Path.GetFileName("C:\\Test\\SubTest\\a.jpg");
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.