摘要: 1.文字模式 FileStream fs = new FileStream(string.Format("{0:D3}.cfg", currentcount), FileMode.Create); //将文件名称格式化成***.cfg 格式 StreamWriter sw = new StreamW 阅读全文
posted @ 2019-12-07 17:45 我注六经 阅读(1520) 评论(0) 推荐(0)
摘要: //新建一个文件对话框 OpenFileDialog pOpenFileDialog = new OpenFileDialog(); //设置对话框标题 pOpenFileDialog.Title = "打开二进制文件"; //设置打开文件类型 pOpenFileDialog.Filter = "b 阅读全文
posted @ 2019-12-07 17:41 我注六经 阅读(3001) 评论(1) 推荐(1)
摘要: 先放上串口的一个类,自己编写的,觉得这样好用些。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System 阅读全文
posted @ 2019-12-07 17:33 我注六经 阅读(2274) 评论(0) 推荐(1)