![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
文章平均质量分 70
hu123456__
这个作者很懒,什么都没留下…
展开
-
c#中比较两个文件
比较两个文件信息: public static bool isValidFileContent(string filePath1, string filePath2) { //创建一个哈希算法对象 using (HashAlgorithm hash = HashAlgorithm.Create()) { ...原创 2018-06-06 15:39:06 · 2197 阅读 · 0 评论 -
c#的文件下载
/// <summary> /// 下载带进度条代码(状态栏式进度条) /// </summary> /// <param name="URL">网址</param> /// <param name="Filename">文件名</param&原创 2018-06-06 15:14:27 · 182 阅读 · 0 评论 -
c#中文件的复制
文件的复制private void CopyDirectory(string srcPath, string destPath) { try { DirectoryInfo dir = new DirectoryInfo(srcPath); FileSystemInfo...原创 2018-06-06 15:16:46 · 1072 阅读 · 0 评论 -
c#的MD5值
MD5值: public void a() { textBox1.Text = GetFileVersion(this.textBox_file.Text); byte[] result = Encoding.Default.GetBytes(GetFileVersion(this.textBox_file.Text)); ...原创 2018-06-06 15:23:48 · 194 阅读 · 0 评论 -
c#中获取文件的版本号
/// <summary> /// 获取文件的版本号 /// </summary> /// <param name="filePath">文件的完整路径</param> /// <returns>文件的版本号</returns> public原创 2018-06-06 15:25:10 · 3414 阅读 · 0 评论 -
c#中文件的打开
打开文件: OpenFileDialog openFile = new OpenFileDialog(); openFile.Filter = @"All Files|*.*"; openFile.ShowDialog(); textBox_file.Text = openFile.FileName;转载 2018-06-06 15:28:58 · 271 阅读 · 0 评论 -
c#中文件的删除
文件的删除: private void DeleteDir(string path) { if (path.Trim() == "" || !Directory.Exists(path)) return; DirectoryInfo dirInfo = new DirectoryInfo(path);...转载 2018-06-06 15:31:25 · 804 阅读 · 0 评论 -
c#查找文件并转换为MD5值
查找文件并转换为MD5值:public void FindFile(string dirPath) //参数dirPath为指定的目录 { //在指定目录及子目录下查找文件,在listBox1中列出子目录及文件 // DirectoryInfo Dir = new DirectoryInfo(dirPath); ...原创 2018-06-06 15:34:29 · 507 阅读 · 0 评论 -
c#中读取和读入文件信息
读入文件信息: private void button3_Click(object sender, EventArgs e) { //for(int i = 0; i < listView1.Items.Count; i++) //{ // System.IO.File.WriteAllTex...原创 2018-06-06 15:36:54 · 1208 阅读 · 0 评论 -
C# DataTable 详解
C# DataTable 详解添加引用using System.Data;创建表//创建一个空表DataTable dt = new DataTable();//创建一个名为"Table_New"的空表DataTable dt = new DataTable("Table_New");创建列复制代码//1.创建空列DataColumn dc = new DataCo...转载 2018-12-10 09:18:25 · 274 阅读 · 0 评论