The file keyword declares a file.

 

A file declaration includes—in this order—the reserved word "file", the name of the file (as used by the program), the subtype indicator (which must define a file subtype), the reserved word "is", on optional mode indicator (which must be either "in" or "out"), and the file’s external name (which must be a string expression and is surrounded by quote marks).  If no mode is specified, the default is "in".

 

Example

  file vector_file: text is in "VECTOR.DAT";

 

LRM

    4.3

 

See also

image\diamond.gif  Objects, Data Types and Operators

image\diamond.gif  Test Benches

image\diamond.gif  Example Fib93