VMS Specific question about binary reads using fgetc

bagpiper at mcosm.uucp bagpiper at mcosm.uucp
Sun Jun 3 02:06:02 AEST 1990


I've been trying to use VMS GNU c v1.36 (and I am using the VMS c rtl libs..so
this probably isn't GNU specific).  I had a piece of code under MS-DOS 
which reads a file in binary mode (fopen("filename","rb")).  This piece of code
does not work under VMS because all of the cr's get cooked out of the file.
The files record attribute is "Carriage Return Carriage Control".  I am using
fgetc to read data out of the file.  Any hints, clues, ect.  I am fairly
new to VMS so I don't know all the insides of RMS.  Is there any way to do
this using portable c?  How about some RMS call? (oh, I am using VMS 5.1-1...
that shouldn't make much of a difference should it???)

				Thankx for any help,
					Michael
 
-------------------------------------------------------------------------------
+           Michael Hunter  {backbone}!hacgate!trwind!mcosm!bagpiper          +
+                                 BIX:bagpiper                                +
+               NOTHING like a spacecraft with a bad attitude!!!              +
-------------------------------------------------------------------------------



More information about the Comp.lang.c mailing list