Re: [Vala] open and read a csv file

2014-10-16 Thread Andy Lees
Have a look at https://github.com/ktt-ol/serial-barcode-scanner/blob/master/src/web/csv.vala for a split regexp and how to deal with quotes. Should be fairly straightforward to use an existing io class (FileStream if reading from a file) as the basis for your data source. Regards, Andy On Fri,

Re: [Vala] open and read a csv file

2014-10-16 Thread Al Thomas
> > From: Jason Scurtu >Sent: Thursday, 16 October 2014, 14:42 >Subject: [Vala] open and read a csv file > > >Basicly, I want to open a csv and write the data to a SQLite database >Just remembered you can import CSV straight into SQLite with the import >comma

Re: [Vala] open and read a csv file

2014-10-16 Thread Al Thomas
> > >From: Jason Scurtu >Sent: Thursday, 16 October 2014, 14:42 >Subject: [Vala] open and read a csv file > > >Basicly, I want to open a csv and write the data to a SQLite database and >display it in a GridView .. but, how to read a CSV? >I come from a C# background and I can hardly find any

[Vala] open and read a csv file

2014-10-16 Thread Jason Scurtu
Hi, I am new to vala and gnome programming and I am looking for a way to open and read a csv file. Still toying with it and trying to figure everything out. Basicly, I want to open a csv and write the data to a SQLite database and display it in a GridView .. but, how to read a CSV? I come from