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.

This environment function has the format:

EnvImport(filename as String) as Boolean
filename

Defines the name of the file.

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

Example: EnvImport function

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