Path: utzoo!attcan!uunet!steinmetz!ge-dab!ge-rtp!edison!rja
From: rja@edison.GE.COM (rja)
Newsgroups: comp.lang.c
Subject: VMS C  &  records in files
Message-ID: <1609@edison.GE.COM>
Date: 17 Aug 88 11:06:52 GMT
References: <196@rna.UUCP> <6671@bloom-beacon.MIT.EDU>
Organization: GE-Fanuc North America
Lines: 16

I'm not aware of any solution to the problem of VMS file types.  The
problem is precisely that VMS is so record-oriented.  Even nominal 
text files don't work like UNIX.  We find that we have to use a loop of
successive calls to read() to fill (for example) a 512 byte buffer
because it gives only 1 record at a time even though you asked for 512
bytes. :-(
  UNIX and even MS-DOS will let you read 512 bytes in a chunk so it's VMS
that is brain-damaged in this case.

  If anyone hears of a SOLUTION to this problem with VMS C, please e-mail
me the details.

______________________________________________________________________________
         rja@edison.GE.COM      or      ...uunet!virginia!edison!rja  
     via Internet (preferable)          via uucp  (if you must)
______________________________________________________________________________