property()

Here’s how to use property() function.

f.property()

Description:

Retrieve property value from the property file.

Syntax:

f.property(p)

Note:

The function retrieves property p from property file f and return.

Parameters:

f

File object

p

Property name; the function returns a table sequence composed of all properties if it is omitted

Options:

@v

Read a property value and parse it as what it is; by default return the value as a string.

Return value:

  A value/a table sequence

Example:

 

A

 

1

=file("E://test.property").property("color")

Property file, export”red

2

=file("E://test.property").property()

Related functions:

f.read()

f.write()