Currently I have data in a string with via this line of code
Console.WriteLine(TemplateMemoryBuilder.ToString());
I would like to output the string into a file. Either a (.config) file or (.txt). Trying to generate code to create the config file out of the string builder. My The File path/name is with the variable ‘OutputFilePath’
The simplest way of writing a string to a file is to use
File.WriteAllText: