Adds a suffix to the specified filename, before the extension.

public static string AddSuffixToFileName(string path,
	string suffix)

Return Value

The filename with the suffix.


path The filename to add the suffix to.

suffix The suffix to add.


One use for this is to add a timestamp to a filename.

See also:

Class StringFunctions

© Stonefield Software Inc., 2019 • Updated: 02/12/16
Comment or report problem with topic