在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
复制代码 代码如下: using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Runtime.InteropServices; namespace CreateWebDir public string path; public INIFile(string INIPath) [DllImport("kernel32")] [DllImport("kernel32")] private static extern int GetPrivateProfileString(string section, public void IniWriteValue(string Section, string Key, string Value)
int i = GetPrivateProfileString(Section, Key, "", temp, 255, this.path); return temp.ToString(); } 复制代码 代码如下: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; public partial class user_Default : System.Web.UI.Page string iniFile = @"F:\test\test.ini"; string[] args = new string[10]; CreateWebDir.INIFile myINI = new CreateWebDir.INIFile(iniFile); for (int i = 0; i < args.Length; i++) 复制代码 代码如下: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.IO; public partial class user_Default : System.Web.UI.Page |
请发表评论