Previous Topic: EnvGetString - Retrieve the Value of an Environment VariableNext Topic: File Content Functions


EnvImport - Import Environment Variables

Valid on UNIX and Windows

The EnvImport function imports environment variables from a text file.

Function format:

EnvImport(filename as String) as Boolean
filename

Defines the name of the file.

On successful completion, the function returns TRUE; otherwise, returns FALSE.

Example:

This example imports additional env variables from a file.

EnvImport("c:\temp\env.dat")

C:\temp\env.dat contains for example:

Xantippe=greek
Yokohama=japanese
Fuel=explosive