C#检查文件是否存在

2020-03-28  每日一例第19天

string fileName = @"D:music1.mp3";

//文件是否存在
if (File.Exists(fileName))
{
Console.WriteLine("{0}文件存在", fileName);
Console.ReadKey();
}

原文地址:https://www.cnblogs.com/ljs7490/p/12585446.html