
How to find out if a file exists in C# / .NET?
我想在C#中测试包含该文件存在路径的字符串(类似于Perl中的 采用:
MSDN:http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx 编辑:在System.IO System.IO.File:
System.IO.File.Exists(路径) msdn 输入完整路径作为输入。 避免相对路径。
|
How to find out if a file exists in C# / .NET?
我想在C#中测试包含该文件存在路径的字符串(类似于Perl中的 采用:
MSDN:http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx 编辑:在System.IO System.IO.File:
System.IO.File.Exists(路径) msdn 输入完整路径作为输入。 避免相对路径。
|