Herror ::write_tuple (
    const HTuple &Tuple,
    const HTuple &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) -> HTuple.double / long / char *
Tuple with any kind of data.

FileName (input_control)
filename -> HTuple.char *
Name of the file to be written.


Result

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


Alternatives

::fwrite_string


See also

::read_tuple, ::write_image, ::write_region, ::open_file


Module

Operators not requiring licensing



Copyright © 1996-2002 MVTec Software GmbH