xaedes / csv_row

C++ Header Only Library to read rows from csv files with std::istream support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

csv_row

C++ Header Only Library to read rows from csv files with std::istream support

Usage:

#include "csv_row/csv_row.h"
int main()
{
    std::ifstream file("plop.csv");
    csv_row::CsvRow row;
    while(file >> row)
    {
        std::cout << "3rd Element parsed as float (" << row.get<float>(2) << ")\n";
        std::cout << "4th Element as string (" << row[3] << ")\n";
    }
}

About

C++ Header Only Library to read rows from csv files with std::istream support

License:MIT License


Languages

Language:C++ 52.8%Language:CMake 47.2%