用C#写的小工具,可以将当前文件夹及其子文件夹内的所有文本文件转换为utf-8编码格式。
代码如下:
代码块语法遵循标准markdown代码,例如:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Threading;
namespace convertor
{
class Program
{
static void Main(string[] args)
{
Convertor convertor = new Convertor();
convertor.Action();
}
}