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

Home » Public Forums » archive » Re: Length of File Inquiry function needed
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: Length of File Inquiry function needed [message #2905] Tue, 11 October 1994 22:12
fskmjm is currently offline  fskmjm
Messages: 25
Registered: November 1993
Junior Member
In article <hahn.33.000F9BA9@hrz.th-darmstadt.de> hahn@hrz.th-darmstadt.de (Norbert Hahn) writes:

> Hi,

> I need a function to inquire the number of bytes in a file and I need to know
> the exact number. Knowing the number of blocks doesn't help much.

> Norbert Hahn
> University at Darmstadt
> Germany

Do the following:
filename=pickfile()
openr,lun,filename,/get
info=fstat(lun)
num_bytes=info.size ; here is the info you need
free_lun,lun
[Message index]
 
Read Message
Previous Topic: Length of File Inquiry function needed
Next Topic: Re: Plot to Postscript file

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

Current Time: Fri Oct 10 17:54:48 PDT 2025

Total time taken to generate the page: 0.64014 seconds