Method GenerateUniqueFilename
GenerateUniqueFilename(string, string)
Generates a unique file name in the specified folder based on the provided file name template.
public static string GenerateUniqueFilename(string pathToFolder, string fileNameTemplate)
Parameters
pathToFolder
stringThe path to the folder where the file will be created.
fileNameTemplate
stringThe template for the file name, including extension.