How to get Filename with extension from path in c#

C# Code:

string FilePath ="D:\\images\\1.png";

string Extention = Path.GetFileName(FilePath);

Popular posts from this blog

File encryption using c#.net

How to create bootable pendrive using DOS