Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Example of writing CSV using StrTk String Toolkit Library

I just started to learn the String Toolkit Library. I've read the CodeProject article, but it seemed focused on parsing and tokenization. Can someone point me to an example of using it to serialize a struct array to CSV file? For example, given:

typedef struct {
    int x;
    int y;
} Point;

I'd like to write an array of Points to a csv file, one point per row. The int to string conversion should be fast.

like image 570
Andrew B. Avatar asked Apr 25 '12 06:04

Andrew B.


1 Answers

I think that best example is String Toolkit Library Source Code and Examples, especially file "strtk_serializer_example.cpp". This example describes many scenarios of structure serialization.

like image 55
Paskas Avatar answered Sep 28 '22 07:09

Paskas