Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GetCsvLine (Reading CSVfile)
Re: GetCsvLine [message #49988 is a reply to message #49987] Tue, 12 June 2018 14:21 Go to previous messageGo to previous message
Oblivion is currently offline  Oblivion
Messages: 1093
Registered: August 2007
Senior Contributor
Hello Upp User,

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	const String csvstr = "data1,data2,data3;data4,data5,data6;data7,data8,data9";
	
	StringStream ss(csvstr); // Any Stream derivative will also do (e.g. FileIn)
	auto v = GetCsvLine(ss, ';', CHARSET_DEFAULT);
	for(auto e : v)
		Cout() << e << '\n';
	
}


Best regards,
Oblivion


[Updated on: Tue, 12 June 2018 14:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About Serialization
Next Topic: Why there is no Index::Add(T&&)?
Goto Forum:
  


Current Time: Sat May 04 00:58:08 CEST 2024

Total time taken to generate the page: 0.01907 seconds