comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: STRSPLIT and .csv files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: STRSPLIT and .csv files [message #76993] Tue, 19 July 2011 03:41
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Am 19.07.2011 12:30, schrieb Fabzou:
> Dear IDLers,
>
> Rather than doing it by myself I am using the "lazy option" wich is
> asking you, my apologies.
>
> I have a .csv file that I read like this:
>
> readf, lun, line
> els = STRSPLIT(line, ',' ,/EXTRACT, /PRESERVE_NULL)
>
> But in the csv file there are some http address that are put between ""
> and that sometimes contain commas. What would be an elegant way to learn
> STRSPLIT to ignore the commas that are present between "", or is there a
> tool that makes it already?
>
> Thanks a lot!
>
> Fab
>
>

May be use one of idl builtins


Result = READ_CSV( Filename [, COUNT=variable] [, HEADER=variable] [,
MISSING_VALUE=value] [, N_TABLE_HEADER=value] [, NUM_RECORDS=value] [,
RECORD_START=value] [, TABLE_HEADER=variable])

Reimar
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: STRSPLIT and .csv files
Next Topic: Paolo says goodbye

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:40:30 PDT 2025

Total time taken to generate the page: 0.00684 seconds