VF_nwriteVD_nwriteVE_nwrite
VCF_nwriteVCD_nwriteVCE_nwrite
VPF_nwriteVPD_nwriteVPE_nwrite
VI_nwriteVBI_nwriteVSI_nwriteVLI_nwriteVQI_nwrite 
VU_nwriteVUB_nwriteVUS_nwriteVUL_nwriteVUQ_nwriteVUI_nwrite
FunctionWrite vectors as the columns of a table into a stream.
Syntax C/C++#include <VFstd.h>
void VF_nwrite( FILE *stream, unsigned n, ui size, ... );
Pascal/Delphiuses VFstd;
procedure VF_nwrite( var stream:Text; VecList:^fVector; n:UInt; size:UIntSize );
Description C/C++n vectors are written in ASCII format as the columns of a table into stream. The number of lines is given by the number of elements of each vector: size.

The default format and separation may be changed using VF_setWriteFormat and VF_setNWriteSeparate, respectively.

Example C/C++VF_nwrite( DataFile, 3, 100, X, Y, Z );
     /* generates a table with 3 columns and 100 lines;
        the columns are given by X, Y and Z. */

 
GCC Windows specific:In principle, the Windows port of GCC supports the 80-bit floating point type long double. However, the I/O routines rely on the runtime libraries of Visual C++, where 80-bit reals have disappeared a long time ago. This means that VE_nwrite, VCE_nwrite, and VPE_nwrite work only with double precision and, more importantly, within double range. Input numbers outside double range are treated as ±DBL_MAX.
Pascal/Delphin vectors, passed as the list VecList, are written in ASCII format as the columns of a table into stream. The number of lines is given by the number of elements of each vector: size.

The separation character(s) between columns may be changed using VF_setNWriteSeparate. By default, it is a tab character (#9).

Please note that the Pascal version of these functions does not allow a free definition of the output format. Therefore, the function VF_setWriteFormat does not exist in the Pascal/Delphi version.

Error handlingnone
Return valuenone
See alsoVF_write,   VF_nread,   VF_store,   VF_recall,   fprintf

VectorLib Table of Contents  OptiVec home