我保存了一本字典,内容如下:
using (var file = File.OpenWrite("dictionary.txt"))
foreach (KeyValuePair<string, string> entry in dictionary)
{
streamwriter.WriteLine(entry.Key + entry.Value);
}
如何重新打开此文件并将保存的数据存储回新字典?
更新 回答