文件名称:OperationTXT-4
介绍说明--下载内容来自于网络,使用问题请自行百度
这一篇与上一篇比较类似,目的相同,不同之处为读入到了list中,list泛型集合可以当作可变长数组使用。通过StreamReader创建一个流sr,然后通过一个while循环将读得的每行数据放入字符串类型的list中,之后对每个list分割,并返回一个字符串数组,这个字符串数组就可以通过转化为double来计算了,计算完成后可以通过放入sb中统一写入到文本文档中。-This is a comparison similar to the previous one, the same purpose, except to read into the list in, list generic collections can be used as a variable length arrays use. Create a flow through StreamReader sr, then read through each row of data into a while loop of string type list, and then dividing each list, and returns a string array, the array of strings can be transformed by to calculate the double, the completion of the calculation can be unified into sb written into the text document.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
OperationTXT-4.docx
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.