[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading ASCII Data
- Subject: Re: reading ASCII Data
- From: meron(at)cars3.uchicago.edu
- Date: Tue, 20 Apr 1999 20:23:39 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: CARS, U. of Chicago, Chicago IL 60637
- References: <3713100C.7142E0A7@iep112.nat.uni-magdeburg.de> <3713B597.627C@bial1.ucsd.edu> <371CD852.1E35776B@io.harvard.edu>
- Reply-To: meron(at)cars3.uchicago.edu
- Sender: news(at)midway.uchicago.edu (News Administrator)
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:14430
In article <371CD852.1E35776B@io.harvard.edu>, Martin Schultz <mgs@io.harvard.edu> writes:
>David Foster wrote:
>>
>> [...] I thought
>> it'd be trivial using IDL's STR_SEP(), but you can't get rid of
>> the extra space characters easily (it gets confused when two
>> delimiting characters are next to each-other...dreadful programming!).
>>
>
>looks a little clumsy but can be done (as long as they are really only
>spaces
>seperating your data records):
>
>tokens = str_sep( strcompress( strtrim( line, 2 ) ), ' ' )
>
>(maybe this would be worth its own function, e.g. strstrip)
>
Well, you can use my STRPARSE which is already 8 years old and still
better than STR_SEP.
Mati Meron | "When you argue with a fool,
meron@cars.uchicago.edu | chances are he is doing just the same"