Cache | Caching saves the following code as ini.asp to run:
1<%
2 ' Power by Tim
3 ' File summary: INI class
4 ' File version: 3.0
5 ' Text creation Date: 2:17 2004-12-14
6 ' ================= Property Description ================
7 ' INI. OpenFile = File path (need to be defined externally using virtual path)
8 ' INI. CodeSet = encoding setting, default is GB2312
9 ' INI. IsTrue = detects whether the file is normal (exists)
10 ' ================ Method Description =================
One ' Isgroup (group name) detection Group exists
The ' Isnode (group name, node naming) detects whether the nodes exist
Getgroup (group name) Read Group information
Number of ' Countgroup () statistics Group
' ReadNode (group name, section Call) Read node data
Writegroup (group name) Create Group
WriteNode (Group, node, node data) Insert/Update node data
' DeleteGroup (group name) Delete Group
' Deletenode (group name, section Call) Delete node
Save () Saving file
Close () Clear internal data (release)
22 ' ===============================================
23
24
25
26Class Ini_class
27 ' ===============================================
Private Stream '//Stream object
Private FilePath '//file path
Public Content '//File data
To public IsTrue '//file exists
Public Isansi '//records are binary
33