An INI class is used instead of caching

Source: Internet
Author: User
Tags ini
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



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.