Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* VAX C Binary Stream File Question
@ 1995-01-23 16:57 jgreen
  1995-01-24 17:02 ` Hein RMS van den Heuvel
  1995-01-24 20:41 ` Ken Cowan
  0 siblings, 2 replies; 3+ messages in thread
From: jgreen @ 1995-01-23 16:57 UTC (permalink / raw)


I'm trying to read binary data from a STREAM file and write
it out as a fixed-length record format file.  The problem is,
the C library functions (or the RMS functions underneath) are
still interpreting control characters, thus scrambling
information.  Example

The input file has two words:

ABCDEFEF 0000000B

After reading the file, the buffer will contain

xxxxxxAB CDEFEF0B      

i.e., somewhere I'm losing those 24 bits of '0'

I'm opening the file with the statement:

in_file = fopen(file_name, "rb", "ctx=bin", "rfm=stm");


John Green - jgreen@acm.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-01-24 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-23 16:57 VAX C Binary Stream File Question jgreen
1995-01-24 17:02 ` Hein RMS van den Heuvel
1995-01-24 20:41 ` Ken Cowan

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