C# Get File Name/Extension
Path.GetFileName(@"c:\temp\myfile.txt")
Path.GetFileNameWithoutExtension(@"c:\temp\myfile.txt")
Path.GetExtension(@"c:\temp\myfile.txt")
Path.GetFileNameWithoutExtension(@"c:\temp\myfile.txt")
Path.GetExtension(@"c:\temp\myfile.txt")
Thanks, all answers should be this easy and short. Exacly what i needed.
ReplyDeleteCheers.. This place is just my quick reference for common problems.. don't have time to write description :)
ReplyDelete