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

Home » Public Forums » archive » Re: Determining length of a text file?
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: Determining length of a text file? [message #40888] Sat, 11 September 2004 20:05 Go to next message
pestMay is currently offline  pestMay
Messages: 5
Registered: September 2004
Junior Member
In IDL v6.1:

n_lines = File_lines(filename)

does what you need.

Ed May
Re: Determining length of a text file? [message #41008 is a reply to message #40888] Thu, 16 September 2004 16:30 Go to previous message
lingfeng.wen is currently offline  lingfeng.wen
Messages: 1
Registered: September 2004
Junior Member
pestMay@gmail.com wrote in message news:<U1P0d.18575$H83.10215@newssvr27.news.prodigy.com>...
> In IDL v6.1:
>
> n_lines = File_lines(filename)
>
> does what you need.
>
> Ed May

In regard of the old verion of IDL, you can try the 'readf' with loop
until EOF so that you can obtain the exact the line number.

Robin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: browse-kill-ring help
Next Topic: Re: keeping a button widget depressed

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

Current Time: Wed Oct 08 19:51:01 PDT 2025

Total time taken to generate the page: 0.00469 seconds