国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

用ASP讀取Windows標(biāo)準(zhǔn)INI格式文件

2019-11-18 21:10:20
字體:
供稿:網(wǎng)友
Have you needed to get information dynamically from Standard Formatted Windows INI files? Here's a set of tools to help you with just that. In this tutorial, we are going to discuss specific actions. More details can be obtained by looking at the files supplied.

Let's see how to implement the tools usage by looking at some parts of TEST.asp:


<!--#include virtual="/readini/inifile.inc"-->
For fairly obvious reasons, we need to include the tools in our page, of course we should fix the path the include file is stored it.

<%
     call IniFileLoad("physical=c:/boot.ini")
%>

Next, a call to IniFileLoad fetches the INI file into a dictionary object called IniFileDictionary. You can specify a physical path as listed above, or you could specify a virtual path such as "virtual=/readini/test.ini".


StrBuf = IniFileValue("boot loader|timeout")
StrBuf = IniFileValue("boot loader")

Finally, we need to ask for a value from the dictionary. You can specify an individual value by using the section name and value name separated by a vertical bar (sometimes referred to as a 'p
   Section name|Value name=Value Data~Section name|ValueName=Value Data

Note that each section/value/data triplet is separated by a tilde character.

Well, that's all there is to it! Happy
PRogramming!

Attachments:
This ZIP file contains an INC file with the utility routines, a test INI file, and an ASP file that demonstrates the tools usage.

http://www.4guysfromrolla.com/webtech/code/inifile.zip


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表

圖片精選

主站蜘蛛池模板: 淳安县| 禹州市| 揭西县| 芒康县| 五台县| 昭觉县| 叙永县| 新郑市| 仁化县| 新竹市| 威信县| 锡林郭勒盟| 屯留县| 东海县| 巨野县| 大姚县| 洛扎县| 天等县| 荆门市| 瑞金市| 东海县| 保山市| 乾安县| 大足县| 凭祥市| 桃源县| 龙胜| 秦皇岛市| 石家庄市| 芮城县| 德惠市| 昌黎县| 景宁| 安塞县| 丰都县| 巴林右旗| 四川省| 剑川县| 兰坪| 巴青县| 马关县|