read_funct_1d ( : : FileName : 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 -> string
Name of the file to be read.

Function (output_control)
function_1d(-array) -> real / integer
Function from the file.


Result

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


Parallelization Information

read_funct_1d is reentrant and processed without parallelization.


Alternatives

fread_string, read_tuple


See also

write_funct_1d, gnuplot_plot_ctrl, write_image, write_region, open_file


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH