Write BOOLEAN Array to File

S

Speed

Could you please tell me which is the most efficient of way writing a
BOOLEAN array to a file.

Thanks a ton.
Speed
 
J

Jim Langston

Speed said:
Could you please tell me which is the most efficient of way writing a
BOOLEAN array to a file.

Thanks a ton.
Speed

Pick your poison. Either write "True" and "False" or "1" and "0".
I'd probably write "1" for true and "0" for false.
 
N

n2xssvv g02gfr12930

Speed said:
Could you please tell me which is the most efficient of way writing a
BOOLEAN array to a file.

Thanks a ton.
Speed

If you use std::bitset<LONG_BIT> then convert it to unsigned long using
to_ulong() and save that.

JB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top