comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier.DeMontmollin@maths.unine.ch (Gautier)
Subject: Re: Help!! Writing binary bit by bit
Date: 1997/04/16
Date: 1997-04-16T00:00:00+00:00	[thread overview]
Message-ID: <1997Apr16.122335.5880@news> (raw)
In-Reply-To: 5j0vh0$2d1$3@cathedral.cerc.wvu.edu


> Is there any sort of IO that i'm not familiar with that gives the programmer 
> control over how many bits are written, and exactly what bits those are 
> (0's or 1's)? That is the only way I see to translate without having an IO 
> package translate for me.

For input, the format 2#0010010101110# should work (2=base; a std format in Ada)
For output, type <<Put(n,base=>2);>> or something like that.
Since you can use <<Put>> to write into a string, you can control all that.

> If I wanted to write 001101, and that's all, not the binary equvalent for
> each digit. If I wanted to write one binary digit at a time, is it possible,
> or is there a more appropriate place to find out?
> 
> I appreciate any and all input!!
> 
> -
> e-mail   :  mcgreal@cs.wvu.edu




  parent reply	other threads:[~1997-04-16  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5j0vh0$2d1$3@cathedral.cerc.wvu.edu>
1997-04-16  0:00 ` Help!! Writing binary bit by bit Larry Kilgallen
1997-04-16  0:00 ` Gautier [this message]
1997-04-18  0:00 ` Robert Dewar
1997-04-21  0:00   ` Michael F Brenner
1997-04-23  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox