文件操作
yang_B621
后天的努力改变生活!When life gives you lemons,make lemonade.
展开
-
日志 - 操作类(一)
在开发,有时为了验证程序运行是否正确,通常要写日志来记录操作,在一个日志类里,通常有两个方法:方法一:以日期为日志文件名public void WriteLog(string msg){ string filePath = AppDomain.CurrentDomain.BaseDirectory + "Log"; if (!Directory.Exists(filePath))...原创 2018-03-07 09:24:01 · 265 阅读 · 0 评论 -
#怎么读写文件和获取文件的扩展名
protected void Write_Txt(string FileName, string Content) { Encoding code = Encoding.GetEncoding("gb2312"); string htmlfilename = HttpContext.Current.Server.MapPath("Preci...原创 2018-03-02 10:00:55 · 642 阅读 · 0 评论 -
IO操作基类
基类大全/// <summary>/// 类说明:Assistant/// 编 码 人:苏飞/// 联系方式:361983679 /// 更新网站:[url]http://www.sufeinet.com/thread-655-1-1.html[/url]/// </summary>using System;using System.Text;using ...转载 2018-03-02 10:16:41 · 108 阅读 · 0 评论 -
INI文件读写类
/// <summary>/// 类说明:INI文件读写类。/// 编 码 人:苏飞/// 联系方式:361983679 /// 更新网站:[url=http://www.sufeinet.com/thread-655-1-1.html]http://www.sufeinet.com/thread-655-1-1.html[/url]/// </summary>...转载 2018-03-02 10:25:34 · 161 阅读 · 0 评论 -
文件操作 - 帮助类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Xml.Linq;using System.Xml;namespace Camew{ public class FileSystem { ...原创 2018-04-03 11:37:23 · 115 阅读 · 0 评论