IniRead

From AutoIt Wiki

Jump to: navigation, search

Contents

Description

Read a section, key, or value to a standard formated .ini file. Useful for scripts that run from independent source (network, USB Drive, etc..).

Syntax

IniRead ("filename", "section", "key", "default")

Parameters

Filename = The name of the .ini file.

Section = The section the key is located in.

Key = The key that contains the value.

Default = If key is not found this value will be used.

Example

Read:

$Var = IniRead("FileName.INI", "Section", "Key", "Default")


Sample "FileName.INI":

[Section]
Key=Value


Also see:

IniDelete, IniWrite

Personal tools