dydtjr1128 / CSVParser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to CSVParser!

This is very simple csv parser project.

Usage example

#include "CSVParser.h" // include header

int main() {
  // csv file path. It doesn't have to be a csv file.
	std::string s = "C:\\Users\\CYS\\Downloads\\11.csv"; 
	CSVParser parser; // Create parser
  
	parser.SetColumnsWidth(15); // One column's width, mininum 10
  
	parser.ReadFile(s); // parser.ReadFile(s, '@'); default is `,`
}

Demo

image

About


Languages

Language:C++ 100.0%