Hi,
I need a function where I need to get extensions of a file .Based on the extension I need to perform set of steps
Hi,
I need a function where I need to get extensions of a file .Based on the extension I need to perform set of steps
Hi @Naman_R
System.IO.Path.GetExtension(yourString)
Try to have it has .Tolower for safer side
This helps to get the file extension
Thanks
Nikhil
fileExtension = Path.GetExtension(filePath).ToLower()
So let’s say you have multiple files inside a folder and you want to achieve a logic fr it
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.