Daniel J Sebald wrote: > On 04/26/2012 02:41 PM, PhilipNienhuis [via Octave] wrote: >> Timothy Field wrote >> On Thu, Apr 26, 2012 at 1:24 PM, forkandwait [via Octave]< > >> As to .csv: >> The latest io package release has csv2cell, which seems to be able to >> read mixed numeric/text info in .csv files (a known stumbling block for >> many other .csv reading functions). In addition it is *much* faster then >> many other text read functions. >> While csv2cell doesn't depend on Java, it is a compiled function, so I >> think you'd need some sort of development framework anyway. >> Hopefully the OSX gurus jump in to explain how to proceed. > > Just a brief comment on saving spreadsheet data as CSV. The thing to be > careful of is when your data might be text fields with commas. For > example, a field like > > Sebald, Daniel > > could throw off the csv2cell routine so that fields are misaligned.
csv2cell has a PROT parameter: <QUOTE> -- Loadable Function: C = csv2cell (FILE, SEP, PROT) Read a CSV (Comma Separated Values) file and convert it into a cell array. SEP (a character value) changes the character used to separate two fields. The default value is a comma (`,'). PROT (character value) changes the character used to protect a string. </QUOTE> I'd suppose it is meant for exactly that situation. Philip ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev