5 cents hint – c# split text by tab delimiter

By | 11. April 2017

if you ever need to split text file lines or other strings by tab delimiter then it it is easy :

 

   // 9  ==> \t 
   // 10 ==> \n
   // 13 ==> \r

   char sep = Convert.ToChar(9);
   string[] splitContent = line.Split(sep);

and done !

Leave a Reply