I want to save both “.txt” and “.TXT” is there any way to write if else condition.
Hi,
How about the following expression?
System.IO.Path.GetExtension(yourFile).ToLower=".txt"
Regards,