请问在ASP.NET中,怎样用C#读取INI文件 路径你自己写啊然后就和.txt文件一样读取 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把路径写在WEB Config里面。 System.IO.StreamReader confSr = null; string curPart="[]"; int menuPos = 0;// int statuCodePos = 0; privMenuText = new string[4]; privMenuUrl = new string[4]; privIsSuccess = true;// privSysTypeList = new System.Collections.Hashtable();// privHttpStatuList = new System.Collections.Hashtable(); try { confSr = new System.IO.StreamReader(appPath+"ini\\common.ini",System.Text.Encoding.GetEncoding("Shift-jis")); //INI僼傽僀儖傪撉傒崬傓 for(string strLine = confSr.ReadLine() ; strLine != null ; strLine = confSr.ReadLine()) {参考上面代码! Request.PhysicalApplicationPath;得到路径. string strLogPath = Request.PhysicalApplicationPath+"ini\\"+"xxxxx.ini";这样得到! 上位机通过System.Windows.Forms.Timer检查串口,监控(ARM)仪器按键,然后收发数据…… C# 读取HTML代码,并替换其中的某些值 一个看似很简单的数据绑定问题,高手来解决一下 c#转义字符问题 请问一下POP3和STMP协议 关于splitter1控件 关于reflection的问题 powerdesigner逆向工程问题 怎样将安全证书打包到安装包中 如何将xml文件中<connstr/>这样的格式转换为<connstr></connstr> CustomValidator问题: 紧急求助,页面无法显示,在线等待
string curPart="[]";
int menuPos = 0;
// int statuCodePos = 0;
privMenuText = new string[4];
privMenuUrl = new string[4];
privIsSuccess = true;
// privSysTypeList = new System.Collections.Hashtable();
// privHttpStatuList = new System.Collections.Hashtable(); try
{
confSr = new System.IO.StreamReader(appPath+"ini\\common.ini",System.Text.Encoding.GetEncoding("Shift-jis")); //INI僼傽僀儖傪撉傒崬傓
for(string strLine = confSr.ReadLine() ; strLine != null ; strLine = confSr.ReadLine())
{
参考上面代码!