Delpih reads INI files

Source: Internet
Author: User
Filecreate ('path and filename '); // create a file.

Read and Write INI files:
Define inifiles in uses and myinifile: Tinifile IN VaR;

Partial writeCode:
Myinifile: = Tinifile. Create ('d: \ 1. INI); // open the 1.ini file of drive D.
Myinifile. readstring ('bar name', 'keyword ', 'default default'); // read bytes data.
Myinifile. redainteger ('bar name', 'keyword ', 'default default'); // read integer data.
Myinifile. readbool ('bar name', 'keyword ', 'default default'); // read Logical Data.

Write the INI file:
Myinifile. writestring ('bar name', 'keyword ', variable or string value); // write bytes data.
Myinifile. writeinteger ('bar name', 'keyword ', 'variable or integer value); // write integer data.
Myinifile. writebool ('bar name', 'keyword ', variable or true or false); // write the number of logical types

Myinifile. Free; // release the INI file.

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.