write_funct_1d ( : : Function, 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 -> real / integer
Function to be written.

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


Result

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


Parallelization Information

write_funct_1d is reentrant and processed without parallelization.


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

Foundation



Copyright © 1996-2008 MVTec Software GmbH