Product SiteDocumentation Site

5.3.11.2. load (Class method)


>>-load(source)------------------------------------------------><

Loads a set of properties from source and returns them as a new Properties object. The load source can be either the string name of a file or a stream object. Properties are read from the source as individual lines using linein() (Section 5.2.4.13, “lineIn”). Blank lines and lines with a Rexx line comment ("--") as the first non-blank characters are ignored. Otherwise, the lines are assumed to be of the form "name=value" and are added to the receiver Properties value using name as the index for the value.