File.WriteAllText IOException: Sharing violation on path

        if (!File.Exists(path))
        {
            File.Create(path).Dispose();
        }
 

File.Create(path).Dispose();

猜你喜欢

转载自blog.csdn.net/qq_21743659/article/details/131072327