C++/CLI Illegal characters in path RRS feed

  • Question

  • There is a opened file and code that reads first line but after running the code I got error message that says "Illegal characters in path". All characters are latin so I don't understand where is a problem ?

    String^ text = textBox1->Text;
    auto lines = File::ReadAllLines(text);
    String ^ sometext = lines[0];
    datagridview->Rows[0]->Cells[0]->Value = sometext;

    Monday, November 30, 2015 11:39 AM