有网友在问,C#读取同一文件夹下多个txt文件中的特定内容,并把各个文本的数据做统计。
读取同一文件夹下多个txt文件中的特定内容并做统计


昨晚Insus.NET抽上些少时间,来实现此问题,加强自身的功力。先是准备好几个文本文件。
第一个文本文件t1.txt:
读取同一文件夹下多个txt文件中的特定内容并做统计

Money of Xiaohong(this year)             12
Money of Xiaoma(Last year)               13
sdfgsd
Money of Xiaoqiang(this year)            16
Money of Xiaogang(Last year)             14

45685221, 82684
View Code

相关文章: