If you write MessageBox::Show("Строка1\nСтрока2"); Then at the output we get a message with two lines.
If we write the function of reading String ^ from a file into a variable and output this variable to the MessageBox, then the output is 1 line, where "\ n" will not be processed. And for me this is a problem, because as the whole text of the entire program, I read their xml files. How to process "\ n"?
I read the variable from the file like this:
String^ Localization::txt(String^ control){ String^ value = ""; XElement^ str str = XElement::Load(path); access_localization(); if (access) { try { value = str->Element(control)->Value; } catch (Exception^ e){ MessageBox::Show(control + "\n\n" + e->ToString()); } } return value; }