File.WriteAllLines("myfile.txt",
dictionary.Select(x => "[" + x.Key + " " + x.Value + "]").ToArray());
(And if you’re using .NET4 then you can omit the final ToArray
call.)
File.WriteAllLines("myfile.txt",
dictionary.Select(x => "[" + x.Key + " " + x.Value + "]").ToArray());
(And if you’re using .NET4 then you can omit the final ToArray
call.)