From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,eabc4e58782dd44f,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-01-23 08:57:20 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.ems.psu.edu!news.pop.psu.edu!hudson.lm.com!newsfeed.pitt.edu!gatech!swrinde!hopper.acm.org!ACM.ORG!JGREEN From: jgreen@ACM.ORG Newsgroups: comp.sys.dec Subject: VAX C Binary Stream File Question Date: 23 Jan 1995 16:57:20 GMT Organization: ACM Network Services Message-ID: <3g0n5h$2b1@hopper.acm.org> Reply-To: jgreen@ACM.ORG NNTP-Posting-Host: acm.org 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