C # Gets the extension of a file
System.IO.Path.GetExtension ("filename");
Changeextension change the extension of the path string. Combine merges two path strings. GetDirectoryName returns the directory information for the specified path string. GetExtension returns the extension of the specified path string. GetFileName returns the file name and extension of the specified path string. Getfilenamewithoutextension returns the file name of the specified path string that does not have a name extension. GetFullPath returns the absolute path of the specified path string. Getpathroot Gets the root directory information for the specified path. GetTempFileName returns a unique temporary file name and creates a 0-byte file on disk with that name. GetTempPath returns the path to the temporary folder for the current system. Hasextension determines whether the path includes a file name extension. IsPathRooted gets a value that indicates whether the specified path string contains absolute path information or contains relative path information.
C # Gets the extension of a file