摘要: 下面对处理文件常用的类做了一些介绍,还算详细吧,主要包括:DirectoryInfo,Directory,Path,FileInfo,File,FileStream。 private void button2_Click(object sender, EventArgs e) { TimeSpan 阅读全文
posted @ 2020-04-16 10:47 任督二脉 阅读(462) 评论(0) 推荐(0) 编辑
摘要: //在上传文件时经常要判断文件夹是否存在,如果存在就上传文件,否则新建文件夹再上传文件 判断语句为 if (System.IO.Directory.Exists(Server.MapPath("file")) == false)//如果不存在就创建file文件夹 { System.IO.Direct 阅读全文
posted @ 2020-04-16 10:46 任督二脉 阅读(330) 评论(0) 推荐(0) 编辑