路径你自己写啊
然后就和.txt文件一样读取

解决方案 »

  1.   

    把路径写在WEB Config里面。
      

  2.   

    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())
    {
    参考上面代码!
      

  3.   

    Request.PhysicalApplicationPath;得到路径.
      

  4.   

    string strLogPath = Request.PhysicalApplicationPath+"ini\\"+"xxxxx.ini";这样得到!