Herror ::write_funct_1d (
    const HTuple &Function,
    const HTuple &FileName
)

Write a function to a file.

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


Parameters

Function (input_control)
function_1d-array -> HTuple.double / long
Function to be written.

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


Result

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


Possible Predecessors

::create_funct_1d_pairs, ::create_funct_1d_array


Alternatives

::write_tuple, ::fwrite_string


See also

::read_funct_1d, ::write_image, ::write_region, ::open_file


Module

Basic operators



Copyright © 1996-2002 MVTec Software GmbH