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

Home » Public Forums » archive » Re: That filelength question - again ....
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: That filelength question - again .... [message #37923] Mon, 09 February 2004 14:58
jeyadev is currently offline  jeyadev
Messages: 78
Registered: February 1995
Member
In article <MPG.1a91a60b162b2a68989683@news.frii.com>,
David Fanning <david@dfanning.com> wrote:
> Surendar Jeyadev writes:
>
>> Sometime back there was thread about how to determine the length
>> of files, but did not follow it ....
>>
>> Faced suddenly with a huge bunch of files with varying lengths,
>> but, thankfully, the same number of columns, I was looking for
>> the answer to the question ... but did not find it. So the
>> following kludge:
>
> Or, for a portable solution: :-)
>
> IDL> Print, File_Lines(filename)
>
> Cheers,
>
> David
>
> P.S. Let's just say if you *had* read the discussion, it
> would have been something like this:
>
> http://www.fanning.com/tips/unknown_rows.html

Thanks, David. Felt that this must have been done before. Did not
have a chance to read News last week. (Far, far, from a computer
-- and it was nice that way!).
--

Surendar Jeyadev jeyadev@wrc.xerox.bounceback.com

Remove 'bounceback' for email address
Re: That filelength question - again .... [message #37927 is a reply to message #37923] Mon, 09 February 2004 13:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Surendar Jeyadev writes:

> Sometime back there was thread about how to determine the length
> of files, but did not follow it ....
>
> Faced suddenly with a huge bunch of files with varying lengths,
> but, thankfully, the same number of columns, I was looking for
> the answer to the question ... but did not find it. So the
> following kludge:

Or, for a portable solution: :-)

IDL> Print, File_Lines(filename)

Cheers,

David

P.S. Let's just say if you *had* read the discussion, it
would have been something like this:

http://www.fanning.com/tips/unknown_rows.html

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: subset of an image
Next Topic: Re: subset of an image

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

Current Time: Tue Dec 02 23:13:20 PST 2025

Total time taken to generate the page: 1.52782 seconds