From: jgreen@ACM.ORG
Subject: VAX C Binary Stream File Question
Date: 23 Jan 1995 16:57:20 GMT [thread overview]
Message-ID: <3g0n5h$2b1@hopper.acm.org> (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
next reply other threads:[~1995-01-23 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-01-23 16:57 jgreen [this message]
1995-01-24 17:02 ` VAX C Binary Stream File Question Hein RMS van den Heuvel
1995-01-24 20:41 ` Ken Cowan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox