Hello I would like to ask how I can create a text file with a specific name and gain access to the folder I'am saving into since I'am the administrator of the computer but I do not have access to save through C#. What i would like to do is iterate over buttons in a UI and get the names of the buttons and write them as text file names in a directory.
I would enjoy getting an answer how I can modify the name of the file I'am saving. My code so far looks like this.
foreach (Button bt in mainCanvasGrid.Children)
{
File.WriteAllLines()
}