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.