Home » Community » Newbie corner » CSV file
CSV file [message #43315] |
Sun, 29 June 2014 12:56  |
idkfa46
Messages: 155 Registered: December 2011
|
Experienced Member |
|
|
Hi,
I have a CSV file with a lot of informations about cities. How can i read the file and fill my DropList with all city names?
Here is en example of CVS: (city names in red)
ANDEZENO,(TO),4,0,7.869,45.037,001009,001,01,[color=red]Torino[/color],PIEMONTE
ANDRATE,(TO),4,0,7.875,45.527,001010,001,01,[color=red]Torino[/color],PIEMONTE
ANGROGNA,(TO),2,0,7.225,44.843,001011,001,01,[color=red]Torino[/color],PIEMONTE
ARIGNANO,(TO),4,0,7.902,45.04,001012,001,01,[color=red]Torino[/color],PIEMONTE
AVIGLIANA,(TO),3,0,7.397,45.079,001013,001,01,[color=red]Torino[/color],PIEMONTE
AZEGLIO,(TO),4,0,7.994,45.424,001014,001,01,[color=red]Torino[/color],PIEMONTE
BAIRO,(TO),4,0,7.755,45.386,001015,001,01,[color=red]Torino[/color],PIEMONTE
...
I have found that functions in utilities:
- String CsvString(const String& text)
- Vector<String> GetCsvLine(Stream& s, int separator, byte charset)
but I'm in trouble trying to use them...
May I have an example?
Regards,
Matteo
|
|
|
Goto Forum:
Current Time: Mon May 12 10:45:04 CEST 2025
Total time taken to generate the page: 0.00702 seconds
|