VF_nwriteVD_nwriteVE_nwrite
VCF_nwriteVCD_nwriteVCE_nwrite
VPF_nwriteVPD_nwriteVPE_nwrite
VI_nwriteVBI_nwriteVSI_nwriteVLI_nwriteVQI_nwrite
VU_nwriteVUB_nwriteVUS_nwriteVUL_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. */
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