C#IO

时间:2017-04-18 20:53:57   收藏:0   阅读:352
System.IO 命名空间包含允许读写文件和数据流的类型以及提供基本文件和目录支持的类型。

  

        string url = @"C:\chisp.log";
        if (System.IO.File.Exists(url))
        {
            Response.Write("文件存在");
        }
        else
        { Response.Write("文件不存在"); }

  

System.IO.File.Exists(url)返回的是true,false

原文:http://www.cnblogs.com/RebornC/p/6730123.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!