Every time I think I’m going to need to write some quick function to do some simple task in a .NET application I shocked to find that the function already exists. Case in point. Today I needed to find the extension of a file and it turns out all you need to do is call this function:
System.IO.Path.GetExtension(Filename)
Enough said.
No user commented in " How to Find A File’s Extension in C# "
Follow-up comment rss or Leave a TrackbackLeave A Reply