Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving binary data

Status
Not open for further replies.

QuantumDoja

Programmer
Jun 11, 2004
76
GB
Hi, I want to save the following binary data

Code:
00001111000011110000111100000001

It's a 32bit integer, why does it save as 4kb, when it should be well under 1kb???

I need to know what format to save it as. Thanks

 
This could simply be the file system - depending on your system the minimum allocation unit size for a file could well be 4K.

Hope this helps.
 
I've just check my laptop, XP(SP2) 30G HD NTFS. It has a 4K allocation unit / cluster size. This means that every file will have its space allocated in multiples of 4K and even a 1 byte file will occupy 4K of disk space.

Hope this helps.
 
The larger the hard drive

that used to be true NTFS is now set to 4kb wich is a lot less then win98. they choose the 4kb because it is a good average sin ce more then 90% of your fales are smaller then that.

I'm not making much sense today.

Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top