public void Load(string filePath) { SourceName = new FileInfo(filePath).Name; using (var file = File.OpenText(filePath)) Statistic.ReadFromCsv(file, str => str); }
public void Save(string filePath) { using (var file = File.CreateText(filePath)) Statistic.WriteToCsv(file); }
public void RemoveLowFrequency(int minf) { Statistic = Statistic.Where(pair => pair.Value >= minf); }