// 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 s = "12345"; int[] v = new int[s.Length]; for(int i = 0; i < v.Length; i++) v[i] = Int32.Parse(s.Substring(i,1)); for(int i = 0; i < v.Length; i++) Console.WriteLine(v[i]); } }