Re: csv (comma separated value) file
- From: Liam R E Quin <liam holoweb net>
- To: Tristan Van Berkom <tvb gnome org>
- Cc: gtk-app-devel-list gnome org, Andrea Zagli <azagli inwind it>, gtk-list gnome org
- Subject: Re: csv (comma separated value) file
- Date: Mon, 03 Aug 2009 13:21:01 -0400
On Mon, 2009-08-03 at 12:45 -0400, Tristan Van Berkom wrote:
[...]
> Currently its pretty easy using g_file_get_contents()/g_strsplit()
CSV files are not just comma separated, and in some cases can have
column headers and other metadata. There's also escaping.
a,b,c\d,e
a,b,"c,d",e
a;b;c,d;e
You also have to deal with differing line ending conventions.
It's enough of a mess that both MS Office and most other
office programs today seem o use XML instead :-)
Probably gnumeric has code for this, though.
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]