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 are going to discuss specific actions. More details can is obtained by looking at the files supplied.
Let ' s and 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. Can specify a physical path as listed above, or you could specify a virtual path such as "Virtual=/readini/test.ini".
Finally, we need to ask for a value from the dictionary. Can specify a individual value by using the section name and value name separated by a vertical bar (sometimes referr Ed to as a ' pipe ') character. Alternately, we can request the entire content of a section by not specifying the value name. When the "is" returned, the data is formatted as:
Section name| Value Name=value data~section name| Valuename=value Data
Note This each section/value/data triplet are separated by a tilde character.
So, that's all there are to it! Happy programming!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.