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

Home » Public Forums » archive » Re: readcol procedure
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: readcol procedure [message #32019] Tue, 10 September 2002 10:48
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
shih I Chun (icshih@astro.soton.ac.uk) writes:

> READCOL is a procedure in the IDL Astronomy Library. I usually use it to
> read ASCII files for further analysis.
>
> The program also indeicates the amount of lines in the file. My question
> then is how to retrieve this information so that I can use it in my
> own program?

I'd do what READCOL does and call NUMLINES. :-)

num_lines = numlines(filename)

Cheers,

David

P.S. Let's just say this particular idea must have been
invented a couple of times now. :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Antialiasing under IDL 5.5
Next Topic: having IDL output to another X11 window

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

Current Time: Sun Oct 12 07:17:14 PDT 2025

Total time taken to generate the page: 0.47971 seconds