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
pathToFolderstringThe path to the folder where the file will be created.
fileNameTemplatestringThe template for the file name, including extension.