I’m not getting as how to write a message in app.config which consists of two or more lines.
My usual code in config file is :
add key="msg_test" value="This is test message."
And I read it in c sharp code like :
ConfigurationSettings.AppSettings[msg_test];
And I want to write something like
add key="msg_test"
value="This is test message \n are you sure you want to continue?"
You can just use line breaks in the value:
You can also use XML encoded characters:
(I have tested both, and they work.)