// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; class MainClass { public static void Main(string[] args) { string s1 = "1,Tekst1,2,Tekst2,3,Tekst3"; string[] s2 = s1.Split(','); string[,] s3 = new string[3,2]; for(int i = 0; i < 3; i++) for(int j = 0; j < 2; j++) s3[i,j] = s2[2*i+j]; for(int i = 0; i < 3; i++) for(int j = 0; j < 2; j++) Console.WriteLine(s3[i,j]); } }