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";
2 users commented in " Change a File’s Extension in C# "
Follow-up comment rss or Leave a TrackbackHI, Which namespace should I use to access the GetDirectoryName?
Thank you in advance.
System.IO.Path
Leave A Reply