String^ fileName = "C:\Users\source\repos\Project1\" + textBox1->Text + ".txt";
How to ignore the \" ? Image of code
String^ fileName = "C:\Users\source\repos\Project1\" + textBox1->Text + ".txt";
How to ignore the \" ? Image of code
I think this is what you want. You need to escape the '\'.
String^ fileName = "C:\\Users\\source\\repos\\Project1\\" + textBox1->Text + ".txt";