Re: Bytes Question
- Posted by Antonio Alessi <a.admin at myway.it> Jul 05, 2006
- 573 views
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