write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d (Operator)
Name
write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d
— Write a function to a file.
Signature
Description
The operator write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d
writes the contents of FunctionFunctionFunctionfunctionfunction
to a file. The data is written in an ASCII format. Therefore, the file can
be exchanged between different architectures (see also
Tuple / String Operations).
The data can be read by the operator read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d
.
There is no specific extension for this kind of file.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
FunctionFunctionFunctionfunctionfunction
(input_control) function_1d →
HFunction1D, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Function to be written.
FileNameFileNameFileNamefileNamefile_name
(input_control) filename.write →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the file to be written.
Result
If the parameters are correct the operator write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dwrite_funct_1d
returns the value 2 (
H_MSG_TRUE)
. Otherwise an exception is raised.
Possible Predecessors
create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairscreate_funct_1d_pairs
,
create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArraycreate_funct_1d_array
Alternatives
write_tuplewrite_tupleWriteTupleWriteTuplewrite_tuple
,
fwrite_stringfwrite_stringFwriteStringFwriteStringfwrite_string
See also
read_funct_1dread_funct_1dReadFunct1dReadFunct1dread_funct_1d
,
write_imagewrite_imageWriteImageWriteImagewrite_image
,
write_regionwrite_regionWriteRegionWriteRegionwrite_region
,
open_fileopen_fileOpenFileOpenFileopen_file
Module
Foundation