Herror ::read_funct_1d (
    const HTuple &FileName,
    double *Function
)
Herror ::read_funct_1d (
    const HTuple &FileName,
    HTuple *Function
)

Read a function from a file.

The operator ::read_funct_1d reads the contents of FileName and converts it into the function Function. The file has be generated by ::write_funct_1d.


Parameters

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

Function (output_control)
function_1d(-array) -> (HTuple.) double * / long *
Function from the file.


Result

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


Alternatives

::fread_string, ::read_tuple


See also

::write_funct_1d, ::gnuplot_plot_ctrl, ::write_image, ::write_region, ::open_file


Module

Basic operators



Copyright © 1996-2002 MVTec Software GmbH