Here's my error.
"System.NotSupportedException"
I have some problems with the StreamReader class.
I have a textbox, and with the textbox, the text is the files location. I have tried with a pattern('@'), and with using the double slash character, and NOTHING has worked.
Here is my function
static string ReadFile(string filePath)
{
string ret = "";
string line;
StreamReader file = new StreamReader(filePath);
while ((line = file.ReadLine()) != null)
ret += line;
return ret;
}
Here's usage
textBox1.Text = ReadFile(treeView2.SelectedNode.ToString());
And it is not the treeview messing up.
If I get the text from the TreeView, and put it there, I don't get errored, lmao, so stupid.
Thanks