write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1d (Operator)

Name

write_funct_1dT_write_funct_1dWriteFunct1dWriteFunct1d — Write a function to a file.

Signature

write_funct_1d( : : Function, FileName : )

Herror T_write_funct_1d(const Htuple Function, const Htuple FileName)

void WriteFunct1d(const HTuple& Function, const HTuple& FileName)

void HFunction1D::WriteFunct1d(const HString& FileName) const

void HFunction1D::WriteFunct1d(const char* FileName) const

void HFunction1D::WriteFunct1d(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteFunct1d(HTuple function, HTuple fileName)

void HFunction1D.WriteFunct1d(string fileName)

Description

The operator write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1d 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_1dReadFunct1dReadFunct1dReadFunct1d. There is no specific extension for this kind of file.

Execution Information

Parameters

FunctionFunctionFunctionFunctionfunction (input_control)  function_1d HFunction1D, HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Function to be written.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.write HTupleHTupleHtuple (string) (string) (HString) (char*)

Name of the file to be written.

Result

If the parameters are correct the operator write_funct_1dwrite_funct_1dWriteFunct1dWriteFunct1dWriteFunct1d returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

create_funct_1d_pairscreate_funct_1d_pairsCreateFunct1dPairsCreateFunct1dPairsCreateFunct1dPairs, create_funct_1d_arraycreate_funct_1d_arrayCreateFunct1dArrayCreateFunct1dArrayCreateFunct1dArray

Alternatives

write_tuplewrite_tupleWriteTupleWriteTupleWriteTuple, fwrite_stringfwrite_stringFwriteStringFwriteStringFwriteString

See also

read_funct_1dread_funct_1dReadFunct1dReadFunct1dReadFunct1d, write_imagewrite_imageWriteImageWriteImageWriteImage, write_regionwrite_regionWriteRegionWriteRegionWriteRegion, open_fileopen_fileOpenFileOpenFileOpenFile

Module

Foundation