VF_writeVD_writeVE_write
VCF_writeVCD_writeVCE_write
VPF_writeVPD_writeVPE_write
VI_writeVBI_writeVSI_writeVLI_writeVQI_write
VU_writeVUB_writeVUS_writeVUL_writeVUI_write
FunctionWrite a vector in ASCII format to a stream.
Syntax C/C++#include <VFstd.h>
void VF_write( FILE *stream, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::write( FILE *stream );
Pascal/Delphiuses VFstd;
procedure VF_write( var Stream:Text; X:fVector; size:UIntSize );
Descriptionsize elements of X are written to stream in ASCII format. By default, one element is written per line. To use these functions, stream must already be open for write operations in text format.

The number format and the separation of consecutive elements may be specified using VF_setWriteFormat (C/C++ only) and VF_setWriteSeparate, respectively. See these functions for details.

Storing data in ASCII format is useful if the data have to be readable by human eyes, or if they are to be exported into other programs which are not able to read machine-format numbers. If avoidable, these functions should not be used for the storage of intermediate results that later have again to be read in. Instead, the function pairs of the VF_store / VF_recall family are recommended for the following reasons: conversion into ASCII format is slow, may lead to round-off errors, and requires much more disk memory than storage in machine format.

Error handlingnone
Return valuenone
See alsoVF_setWriteFormat,   VF_setWriteSeparate,   VF_nwrite,   VF_read,   VF_store,   VF_cprint,   VF_print,   fprintf

VectorLib Table of Contents  OptiVec home