|Function||Write 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, ... );
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/Delphi||n 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.
VectorLib Table of Contents OptiVec home