if (!File.Exists(SavePath)) { File.Create(SavePath).Close(); } 转载于:https://www.cnblogs.com/wangfuyou/p/5091957.html