Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #15102

Re: how to add pad byte

From jgk@panix.com (Joe keane)
Newsgroups comp.lang.c++
Subject Re: how to add pad byte
Date 2012-03-29 23:05 +0000
Organization Public Access Networks Corp.
Message-ID <jl2pqt$dpq$1@reader1.panix.com> (permalink)
References <12a32df5-3958-4a20-b6cf-eb6f3ddacd3e@l7g2000vbw.googlegroups.com> <slrnjmu11h.1ls.grahn+nntp@frailea.sa.invalid> <c16c1a24-19d6-4874-9e1f-1c3d81d70ba0@z31g2000vbt.googlegroups.com>

Show all headers | View raw


In article <c16c1a24-19d6-4874-9e1f-1c3d81d70ba0@z31g2000vbt.googlegroups.com>,
Cplusplus Programmer <cplusplusprogrammer73@gmail.com> wrote:

>I need to add pad bytes to fill up the rest of the bytes that does not
>represent the actual value I am storing.

You need a spec for the 'binary file', such that two people will read it
precisely the same way; otherwise we can't help.

I know 'P3' format.  It is 'binary file', in that the values are almost
certainly stored in binary -in memory- (e.g. 'two bytes'), although
values are encoded in decimal to avoid some issues.  The pad bytes are
space and newline, in that they are ignored when they are read, except
that there must be one between two values.

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

how to add pad byte Cplusplus Programmer <cplusplusprogrammer73@gmail.com> - 2012-03-25 02:49 -0700
  Re: how to add pad byte Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-03-25 11:40 +0000
    Re: how to add pad byte Cplusplus Programmer <cplusplusprogrammer73@gmail.com> - 2012-03-25 10:00 -0700
      Re: how to add pad byte scott@slp53.sl.home (Scott Lurndal) - 2012-03-25 17:58 +0000
        Re: how to add pad byte Cplusplus Programmer <cplusplusprogrammer73@gmail.com> - 2012-03-25 11:41 -0700
          Re: how to add pad byte Richard Damon <news.x.richarddamon@xoxy.net> - 2012-03-25 14:51 -0400
            Re: how to add pad byte Cplusplus Programmer <cplusplusprogrammer73@gmail.com> - 2012-03-25 13:44 -0700
              Re: how to add pad byte Cplusplus Programmer <cplusplusprogrammer73@gmail.com> - 2012-03-25 13:46 -0700
              Re: how to add pad byte Richard Damon <news.x.richarddamon@xoxy.net> - 2012-03-25 19:25 -0400
      Re: how to add pad byte Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-03-25 19:49 +0000
      Re: how to add pad byte "Fred Zwarts \(KVI\)" <F.Zwarts@KVI.nl> - 2012-03-26 10:05 +0200
      Re: how to add pad byte jgk@panix.com (Joe keane) - 2012-03-29 23:05 +0000
  Re: how to add pad byte goran.pusic@gmail.com - 2012-03-30 06:40 -0700

csiph-web