|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. */
|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