static void Main(string[] args)
        {
            string currentDirectory = Environment.CurrentDirectory;
            string[] files = Directory.GetFiles(currentDirectory, "*.sql");
            string path = Path.Combine(currentDirectory, "all.sql");
            using (FileStream stream = File.Create(path))
            {
                stream.Dispose();
            }
            foreach (string str3 in files)
            {
                string str4 = Path.Combine(currentDirectory, str3);
                if (path.ToLower() != str4.ToLower())
                {
                    string contents = File.ReadAllText(str4, Encoding.UTF8) + "\r\n";
                    File.AppendAllText(path, contents);
                }
            }
            }

相关文章:

  • 2021-05-11
  • 2022-02-10
  • 2021-12-03
  • 2021-12-17
  • 2021-12-15
  • 2022-02-26
  • 2021-12-15
  • 2021-06-11
猜你喜欢
  • 2021-12-29
  • 2021-12-09
  • 2022-12-23
  • 2021-12-19
  • 2022-02-07
  • 2021-12-29
相关资源
相似解决方案