摘要:
代码:public static void CleanTemp(string strTempPath) { try { DirectoryInfo DirFile = new DirectoryInfo(strTempPath); //首先删除此文件夹下的文件 foreach (FileInfo file in DirFile.GetFiles()) { file.Delete(); ... 阅读全文
posted @ 2012-07-06 14:31
TigerWang1986
阅读(290)
评论(0)
推荐(0)
摘要:
常常用于访问某个接口返回字符串,然后对字符串进行处理从而获得有效信息;代码: /// <summary> /// 请示URL地址获取信息 /// </summary> /// <param name="strURL">URL地址</param> /// <returns></returns> public static string SendMsg(string strURL) { string strHtmlContent = null; try ... 阅读全文
posted @ 2012-07-06 13:43
TigerWang1986
阅读(356)
评论(0)
推荐(0)
摘要:
代码:using System.Runtime.InteropServices;public class INIClass { //ini文件的路径名称 public string inipath; // 声明INI文件的写操作函数 WritePrivateProfileString() [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key, str... 阅读全文
posted @ 2012-07-06 11:09
TigerWang1986
阅读(680)
评论(0)
推荐(0)
浙公网安备 33010602011771号