From b830aba9806940b1fa5944707348ad382c30a171 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Sun, 10 Sep 2023 14:16:37 -0600 Subject: [PATCH] add csv test --- src/component/test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/component/test.cpp b/src/component/test.cpp index 4aae353..9cfb466 100644 --- a/src/component/test.cpp +++ b/src/component/test.cpp @@ -9,6 +9,7 @@ #include #include #include +#include namespace test { @@ -30,6 +31,21 @@ namespace test //Disable unknown dvar spam utils::hook::nop(0x5F04AF, 5); + + if (utils::io::file_exists("some_file.csv")) + { + std::ifstream f("some_file.csv"); + aria::csv::CsvParser parser(f); + for (auto& row : parser) + { + for (auto& field : row) + { + printf("%s", std::format("{} | ", field).c_str()); + } + + printf("\n"); + } + } } private: