write_tuple ( : : Tuple, FileName : )

Write a tuple to a file.

The operator write_tuple writes the contents of Tuple to a file. The data is written in an ASCII format. Therefore, the file can be exchanged between different architectures. There is no specific extension for this kind of file.


Parameters

Tuple (input_control)
number(-array) -> real / integer / string
Tuple with any kind of data.

FileName (input_control)
filename -> string
Name of the file to be written.


Result

If the parameters are correct the operator write_tuple returns the value 2 (H_MSG_TRUE). If the file could not be opened write_tuple returns 5 (H_MSG_FAIL). Otherwise an exception handling is raised.


Parallelization Information

write_tuple is reentrant and processed without parallelization.


Alternatives

fwrite_string


See also

read_tuple, write_image, write_region, open_file


Module

Operators not requiring licensing



Copyright © 1996-2005 MVTec Software GmbH