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

Home » Public Forums » archive » reading ASCII Data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reading ASCII Data [message #15114 is a reply to message #15013] Tue, 20 April 1999 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
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)

Regards,
Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Framegrabber
Next Topic: FFT-filtering

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

Current Time: Sat Oct 11 22:33:27 PDT 2025

Total time taken to generate the page: 1.75947 seconds