I am trying to use ifstream to read from a file.
When you use ifstream you have to specify the path like this.
Instead of specifying like that, I will find a variable Text from a comboBox like
the code below.
Path has the string: "Folder1\\Folder2\\File1.txt"
When I try to put path into the parantheses of ifstream I have a lot of compiler errors.
Any idéas why this is happening ?
String^ Text; Text = comboBox3->SelectedItem->ToString(); String^ Path = "C:\\Folder1\\Folder2\\" + Text + ".txt"; ifstream Symb(Path);