schangxiang@126.com
2024-09-11 716ba664ed10d0d3db50284d7570b2e0d8407d7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWareCommon.Utils
{
    public static class FileUtil
    {
        /// <summary>
        /// 往文件里追加内容
        /// </summary>
        /// <param name="folder">文件</param>
        /// <param name="folder">目录</param>
        /// <param name="fileName">文件</param>
        /// <param name="args">内容参数</param>
        public static void WriteLine(string folder, string fileName, string content)
        {
 
            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
            }
 
 
 
 
 
 
            File.AppendAllText(Path.Combine(folder, fileName), content + "\r\n");
 
 
        }
 
 
 
 
    }
}