Home »
Public Forums »
archive »
Re: readcol procedure
Re: readcol procedure [message #32019] |
Tue, 10 September 2002 10:48 |
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
|
|
|
Current Time: Sun Oct 12 09:36:22 PDT 2025
Total time taken to generate the page: 0.01060 seconds