string configfile = Server.MapPath("~/csspath.txt");

string lineStr = null;

DataTable dt = new DataTable();

dt.Columns.Add("loc");

if(File.Exists(configfile))

{ StreamReader re = File.OpenText(configfile);

  try{   while((lineStr = re.ReadLine()) != null)  

 {    DataRow dr = dt.NewRow();    dr["loc"] = lineStr;

   dt.Rows.Add(dr);   }

}

finally {   re.Close(); }

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2021-11-12
  • 2021-07-21
  • 2021-08-10
  • 2022-12-23
  • 2021-08-17
猜你喜欢
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-10-20
  • 2022-02-04
  • 2022-12-23
相关资源
相似解决方案