码迷,mamicode.com
首页 > Windows程序 > 详细

C#IO

时间:2017-04-18 20:53:31      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:命名   class   读写   允许   div   isp   blog   文件   ring   

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

C#IO

标签:命名   class   读写   允许   div   isp   blog   文件   ring   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!