Re: About file length [message #32728] |
Tue, 05 November 2002 23:47 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
David Fanning wrote:
> Pavel A. Romashkin (pavel_romashkin@hotmail.com) writes:
>
>
>> Through the throbbing headache, I recall that in 5.5 there is a
>> FILE_INFO that gives all that information without having to open the
>> file. Thanks Jim P. for reminding me of that! Now I can pretend I know
>> something :-)
>
>
> Ah, right. I was looking for that this morning, too.
>
> Cheers,
>
> David
>
> P.S. Let's just say I hope IDL 5.6 has its own help
> file. :-)
>
It has!
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|
Re: About file length [message #32733 is a reply to message #32728] |
Tue, 05 November 2002 13:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Pavel A. Romashkin (pavel_romashkin@hotmail.com) writes:
> Through the throbbing headache, I recall that in 5.5 there is a
> FILE_INFO that gives all that information without having to open the
> file. Thanks Jim P. for reminding me of that! Now I can pretend I know
> something :-)
Ah, right. I was looking for that this morning, too.
Cheers,
David
P.S. Let's just say I hope IDL 5.6 has its own help
file. :-)
--
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
|
|
|
Re: About file length [message #32734 is a reply to message #32733] |
Tue, 05 November 2002 12:58  |
Pavel A. Romashkin
Messages: 531 Registered: November 2000
|
Senior Member |
|
|
Through the throbbing headache, I recall that in 5.5 there is a
FILE_INFO that gives all that information without having to open the
file. Thanks Jim P. for reminding me of that! Now I can pretend I know
something :-)
Cheers,
Pavel
David Fanning wrote:
>
> lily_zhang (fengliza@sina.com) writes:
>
>> Would you tell me how to get the length of a file?
>
> There are probably several ways to do this. Here is
> a way I often use:
>
> OpenR, lun, filename, /Get_Lun
> info = FStat(lun)
> Print, info.size
>
> Cheers,
>
> David
|
|
|
Re: About file length [message #32741 is a reply to message #32734] |
Tue, 05 November 2002 05:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
lily_zhang (fengliza@sina.com) writes:
> Would you tell me how to get the length of a file?
There are probably several ways to do this. Here is
a way I often use:
OpenR, lun, filename, /Get_Lun
info = FStat(lun)
Print, info.size
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
|
|
|