- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 C#读取TXT文件并放入二维数组,拆分成两个一维数组并在两个文本框中显示
private void button1_Click(object sender, EventArgs e)//读取文件到二维数组,放入两个文本框中 { int row = 0;//行 int col = 0;//lie FileStream fs; string path = “E:\C##CX\C#TT\TEXT2.txt”; textBox3.Text = “当前文件夹位置是:” + “\r\n” + path; fs = new FileStream(path, FileMode.Open, Fil
2020-07-13 16:58:23
1168
原创 C#读取文本框(TextBox)数据并统计其中最大小值平均值及求出所在数组中位置,在文本框中显示
//如何读取文本文件到文本框中已在我另一文章中说明 int count = this.textBox1.Lines.GetUpperBound(0); double sum = 0; double aver = 0; double mtemp; double stemp; int mindex=0; int sindex=0; double ll; double l; double ma; double su; double[] p = new double[count]; double[] a = new
2020-07-13 16:52:15
3130
原创 C#读取TXT文件放入数组,并统计数据,绘制折线图
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; using System.Collections;
2020-07-13 16:51:29
2102
原创 C#读取TXT文件并存入二维数组中,并拆分成一维数组分别在文本框中显示
int row = 0;//行 int col = 0;//lie FileStream fs; string path = “E:\C##CX\C#TT\TEXT2.txt”; textBox3.Text = “当前文件夹位置是:” + “\r\n” + path; fs = new FileStream(path, FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); while (!sr.EndOfStream
2020-07-13 16:49:57
1456
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅