随笔分类 - C#
摘要:今天使用Path.GetTempFileName创建临时文件,抛出了exception:System.IO.IOException: The file exists。看了一下MSDN,The GetTempFileName method will raise an IOException if it is used to create more than 65535 files without deleting previous temporary files.The GetTempFileName method will raise an IOException if no unique t
阅读全文
摘要:本人工作环境为繁体,今天从园子里找了一些SourceCode,结果中文注释在VS里全变成了乱码,源文件又比较多,就写了一个小工具,顺便学习一下编码的转换。功能:把给定目录里面的cs文件全部由gb2312转换成unicoe,并备份源文件。考虑可能不是很周到,两个知识点:编码转换和目录遍历usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;namespaceConvertEndcode{/**////<summary>///Author:KymoWang///Date:2008/04/2
阅读全文

浙公网安备 33010602011771号