Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get file extension

string myFilePath = @"C:MyFile.txt";
string ext = Path.GetExtension(myFilePath);
// ext would be ".txt"
Comment

get file extension in c# file upload

string extension=System.IO.Path.GetExtension(file1.FileName);
Comment

PREVIOUS NEXT
Code Example
Csharp :: datetime check null c# 
Csharp :: all possible substrings of a string 
Csharp :: switch expression c# 
Csharp :: C# loop through array of objet 
Csharp :: how to pass optional guid parameters in c# 
Csharp :: C# monogodb 
Csharp :: c# settings file 
Csharp :: how to make button in asp.net to go to other page 
Csharp :: c# isdigit mehod 
Csharp :: c# set cursor pos 
Csharp :: c# array.join 
Csharp :: add a dictionary to another dictionary c# 
Csharp :: C# datareadeer return null 
Csharp :: .net core web app get dll name 
Csharp :: unity how to destroy child 
Csharp :: C# async to sync 
Csharp :: c# excel close workbook 
Csharp :: c# struct 
Csharp :: how to concert a list into strinf splitted by coma c# 
Csharp :: c# wpf image source from resource programmatically 
Csharp :: how to destroy parent gameobject unity 
Csharp :: pyautopgui erros 
Csharp :: Write text in Word Document at specific location using C# 
Csharp :: unity add button 
Csharp :: wasd code for unity 
Csharp :: c# scroll to bottom of datagridview vb.net 
Csharp :: c# timer 30 seconds 
Csharp :: prevent system shutdown c# 
Csharp :: c# convert string to uri 
Csharp :: defining vectors in c# 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =