Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get file extension

string myFilePath = @"C:MyFile.txt";
string ext = Path.GetExtension(myFilePath);
// ext would be ".txt"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #extension
ADD COMMENT
Topic
Name
4+4 =