C# 文件写入

来源:互联网 发布:sql id=@id 编辑:程序博客网 时间:2024/05/23 15:06

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 0; i < 100; i++)
            {
                File.AppendAllText("Test.txt", "/r/n这是实验", Encoding.UTF8);
            }
        }
    }
}