Tab separated string split in C# -


there several stackoverflow question posted none of them works me.

i have string say

   string str = "15.24\t7.28\t6.04\t5.0"; 

in app.config, define key value

   <add key="delimiter" value="\t"/> 

in program, have this

 string delimiter = configurationmanager.appsettings["delimiter"];   string[] parsedvalues = str.split(delimiter.tochararray()); 

while debugging find delimiter gets changed "\t" , doesn't split string.

i have tried changing app.config

 <add key="delimiter" value=@"\t"/>  

but gives error.

even following gives error.

 <add key="delimiter" value='\t' /> 

any appreciated.

try replacing \t &#09; in config file. in xml files tab character represented &#09;.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -