Answers for "get extension of file from filestream in c#"

C#
5

c# get file extension

string myFilePath = @"C:\MyFile.txt";
string ext = Path.GetExtension(myFilePath);
// ext would be ".txt"
Posted by: Guest on August-11-2020

Code answers related to "get extension of file from filestream in c#"

C# Answers by Framework

Browse Popular Code Answers by Language