Is this library possible to create and edit a csv file? #153
Closed
Michaelzhouisnotwhite
started this conversation in
Q&A
Replies: 1 comment
-
Hi @Michaelzhouisnotwhite - yes that should work. Here is another example: int main()
{
rapidcsv::Document doc("");
doc.InsertColumn(0, std::vector<std::string>(), "A");
doc.InsertColumn(1, std::vector<std::string>(), "B");
doc.InsertColumn(2, std::vector<std::string>(), "C");
doc.InsertRow(0, std::vector<std::string>({ "a1", "b1", "c1" }));
doc.InsertRow(1, std::vector<std::string>({ "a2", "b2", "c2" }));
doc.InsertRow(2, std::vector<std::string>({ "a3", "b3", "c3" }));
std::ostringstream sstream;
doc.Save(sstream);
std::cout << sstream.str();
} Resulting in:
Searching the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
like following:
Beta Was this translation helpful? Give feedback.
All reactions