There are several stackoverflow question posted but none of them works for me.
I have a string say
string str = "15.24\t7.28\t6.04\t5.0";
In App.Config, I define a key value
<add key="delimiter" value="\t"/>
In the program, I have something like this
string delimiter = ConfigurationManager.AppSettings["delimiter"];
string[] parsedValues = str.Split(delimiter.ToCharArray());
While debugging I find that delimiter gets changed to "\t" and so it doesn't split the string.
I have tried changing App.Config to
<add key="delimiter" value=@"\t"/>
but this gives an error.
Even the following gives error.
<add key="delimiter" value='\t' />
Any help greatly appreciated.