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

Home » Public Forums » archive » Re: Read Total lines in an ASCII file
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: Read Total lines in an ASCII file [message #33170] Fri, 13 December 2002 10:53 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Med Bennett (no.spam@this.address.please) writes:

> That should work fine, but I would think that it would be slow for large files
> because of the loop. I do this instead - also somewhat crude but maybe
> faster:

I once thought of writing an article about all the goofy
ways people have devised to count the lines in their files.
(Have you ever wondered why we are so attached to columns
of data? I wonder if it has something to do with the hard-wiring
in our brains. Something about bananas hanging from the top of
a tree, maybe.)

Anyway, IDL 5.6 has FILE_LINES, which will give us
all a consistent way to count lines from now on. Now,
all we have to do it convince everyone to upgrade... :-)

Cheers,

David

--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Histogram indeterminate results
Next Topic: handling numbers

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

Current Time: Fri Oct 10 05:25:55 PDT 2025

Total time taken to generate the page: 0.08297 seconds