Re: Bytes Question

new topic     » goto parent     » topic index » view thread      » older message » newer message

Correction of my first post in this thread
(of course it must be "byte" here, not "bit"):

don cole wrote:

> x=dir(myfile)
> x[D_SIZE] would be the file size in bytes.
> So would file size in Kbytes would be x[D_SIZE]/1000
> or x[D_SIZE]/1024 ? What about Mbtyes?

Good question. smile

x[1][D_SIZE]/1000 = file size in kilobyte (kbyte)
x[1][D_SIZE]/1024 = file size in kibibyte (Kibyte)

see <http://physics.nist.gov/cuu/Units/binary.html>

Regards,
   Juergen

-- 
Please excuse my flawed English. My native language is Euphoria.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu