Re: Bytes Question
- Posted by Larry Miller <larrymiller at sasktel.net> Jul 05, 2006
- 579 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 A Kbyte is defined as 1024 bytes while a MByte is 1024 * 1024 =1048576 bytes. x[D_SIZE]/1024 would be correct. Larry Miller