Re: Bytes Question

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

don cole wrote:
> 
> Hello All,
> 
> 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?
> 
> Don Cole


Beware, x[1][D_SIZE] would be the file size of myfile in bytes.

However one MB is 1024k in a binary system; if we have 256k, 512k etc.
1000 should have nothing to do with the true size.

antonio

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

Search



Quick Links

User menu

Not signed in.

Misc Menu