| Re: That filelength question - again .... [message #37923] |
Mon, 09 February 2004 14:58 |
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  |
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/
|
|
|
|