This is a quick post about how to change the extension in a path. Note: This does NOT change the extension of the file. I will have to be moved for that to happen.
func
System.IO.Path.GetDirectoryName(strFile) + System.IO.Path.DirectorySeparatorChar + System.IO.Path.GetFileNameWithoutExtension(strFile) + ".txt";