Skip to content

read_container_file

Syntax

read_container_file("filename", place-type)

Parameters

filename
The name of comma-separated file, surrounded by quotes. The filename may include the path to the file in addition to the name.
place-type
The place type of the container.

Description

This action reads and internally stores a list of places and their containers from a file. Reads a csv file that contains lines with the format:

PLACE,CONTAINER
<PLACE-ID>,<CONTAINER-ID>

These two columns may occur in any order; the type of column is determined by the header line.

Any other columns in the file are ignored.

Both the place and the container must be previously defined in the model, for example, by a call to read_place_file(). Any record that contains an unknown PLACE-ID or any unknown CONTAINER-ID is ignored.

An error occurs if the file is not found.

See Also