Connect the dots

“Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things.” - Robert Heinlein

导航

12 2004 档案

摘要:1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 in... 阅读全文

posted @ 2004-12-20 10:00 TOX 阅读(253) 评论(0) 推荐(0)

摘要:一、判断文件或文件夹是否存在 使用System.IO.File,要检查一个文件是否存在非常简单: bool exist = System.IO.File.Exists(fileName); 如果需要判断目录(文件夹)是否存在,可以使用System.IO.Directory: bool exist = System.IO.Directory.Exists(folderName); 二、使用deleg... 阅读全文

posted @ 2004-12-19 20:10 TOX 阅读(494) 评论(0) 推荐(0)