Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: csv files

From: gchiu:compkarori at: 5-Jan-2001 23:58

On Fri, 5 Jan 2001 22:57:32 +1300 "Andrew Martin" <[Al--Bri--xtra--co--nz]> wrote:
> > Bo's example in the Rebol script library doesn't take > into account the > situation where a "field" contains commas, and so is > enclosed by quotation > marks, and quotation marks contained within such fields > are escaped by a > quotation mark. > > Can you give an example of this last example, as it > sounds a little > confusing to me. >
Sure. A csv file looks like this datum1, datum2, datum3 ... but sometimes, like this datum1,"this is data with commas, and quotes eg 14"" monitor within the field",datum3 ... Despite it being midnight, I managed to cobble something together which seems to do the trick. -- Graham Chiu