C# 常用函数功能

    技术2024-12-18  10

     C#写入txt文本行

    StreamWriter writer = new StreamWriter("C:\\aaa.txt"); writer.Write(string.Concat("aaa", Environment.NewLine)); writer.Write(string.Concat("bbb", Environment.NewLine)); writer.Close();

    C#获取当前目录

    System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase

     

    Processed: 0.057, SQL: 9