PANDORE Version 6 GREYC-IMAGE

pcol2csv



Converts a collection to a csv file.



Synopsis

pcol2csv [col_in|-] [file_out]

Description

pcol2csv converts the contents of the input collection col_in into a csv file. CSV files (Comma Separated Values) are plain-text files that contain a list of formattaed data that can be used in any in any spreadsheet application.

The output uses the following format:

label1; label2; label3;
 val11;  val21;  val31;
 ..       ..      ..
 val1n;  val2n;  val3n;
where the separator is the semicolon.

The name of the text file is optional. If it is omitted, the result is printed on the standard output.

Notice: Uchar and Char arrays are printed as tiny integer arrays. Therefore, strings (Array:Char) are printed as a sequence of ascii code values (where A = 65, B=66 ...).

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Displays the contents of the collection col.pan:

  pobject2col foo tangram.pan col.pan
  pcolsetvalue foo Float 10.5 col.pan col.pan
  pfile col.pan
  pcol2csv col.pan data.csv

See also

Collection

C++ prototype

Errc PCol2Csv( const Collection &col_in_out, FILE *fd );

Version française

Conversion d'une collection en un fichier csv.


Author: Régis Clouard