File.SetExt (gb)
Static Function SetExt ( Path As String, NewExt As String ) As String
Sets the file extension of a path, and returns the modified path.
Examples
[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component
* Change extension from mp3 to ogg
/my/path/file.mp3
/my/path/file.ogg
* Add extension to file name
/my/path/file
/my/path/file.new
* Change extension of a hidden file
/my/path/.file.ext
/my/path/.file.new
* Make sure you have a file name as you
* could end up with an invalid path
/my/path/.ext
/my/path.new
* Make sure you have a file name and extension
* as you could end up with an invalid path
/my/path/
/my/path.new