.ini File I/O Expression

 

image-20241018-011408.png

 

 

ReadPrivateIni()

ReadPrivateIni

Reads items from a specific section within a specified file.

Function

Command

ReadPrivateIni(“Section”,”Item”,”File Name”)

Script

n=ReadPrivateIni(“Section”,”Item”,”File Name”)

Description

Reads items from a specific section within a specified file.

Example

Reads the “File1” Item in the “File” section of the “Backup.ini” file.

ReadPrivateIni("File","File1","Backup.ini")

 

 

WritePrivateIni()

WritePrivateIni

Enters a value in a specific item of a specific section within a specified file.

Function

Command

WritePrivateIni(“Section”,”Item”,”Value”,”File Name”)

Script

WritePrivateIni “Section”,”Item”,”Value”,”File Name”

Description

Enters a value in a specific item of a specific section within a specified file.

Example

Enters “TEST” in the “File1” item of the “File” section within the “Backup.ini” file.

WritePrivateIni("File","File1",”TEST”,"Backup.ini")