VDS Renaissance 的界面提供多种语言。官方文档以英语维护,以确保提供统一、一致且始终最新的参考。

@INIREAD

Windows Linux macOS

Syntax

@INIREAD(<section name>,<key name> , <default>)

Description

This function returns a string containing the value of <key name> in the <section name> section of the configuration file that was specified in the preceding INIFILE OPEN command. The returned string is empty if the section or key do not exist, unless the optional <default> value has been supplied. Note that the <default> value is not returned if the section and key name do exist, but the value is null.

[VDS6] If <key name> is null then the function returns a carriage-return delimited string containing all the values in <section name>. If <section name> is also null then the function returns a carriage-return delimited list of section names. The results can be assigned to a string list for easy processing of the individual values.

OK

Unchanged.

Example

%A = @INIREAD(Extensions,.txt)

See also