using System;using System.Collections.Specialized;using System.IO;var lines = File.ReadAllLines("1.txt");var dict = new StringDictionary();string[] arr;int idx;foreach(var line in lines){arr = line.Split(':'); dict.Add(arr[0],arr[1]);}