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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I write bit values to a file?

Status
Not open for further replies.

Kudel

Programmer
Dec 3, 2002
36
NO
Hi all!

How can I write bit values to a file?

Any tip, trick or comment is appreciated.

-Kudel:)
 
You may implement it by using set of integer.

e.g.
var BitValue : set of integer;

begin
:
BitValue := [1,2,3];
write(TxtFile, BitValue);
:
end
 
hi,

If you're looking at exact bit usage in a file (e.g. write 3 bits of info, then 7 bits, all compacted together), then I've got a filestream descendent class that'll do it for you. If you're interested, then reply to the thread
 
hi alunjones!

Yes, that sounds interesting!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top