SETHA SITE INFORMATION

  • Increase font size
  • Default font size
  • Decrease font size

How to get file extension in Visual Basic .Net?

E-mail Print PDF
This article guides you to write Visual Basic .Net code to get file extension.
Dim strFilePath As String
Dim strFileExtension As String
strFilePath = "C:\data.txt"

strFileExtension = System.IO.Path.GetExtension(strFilePath)