Xref: utzoo comp.lang.c:11882 comp.os.vms:8133
Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ames!mailrus!iuvax!bsu-cs!dhesi
From: dhesi@bsu-cs.UUCP (Rahul Dhesi)
Newsgroups: comp.lang.c,comp.os.vms
Subject: Re: VMS C file type and stdio - help!
Message-ID: <3689@bsu-cs.UUCP>
Date: 18 Aug 88 05:04:49 GMT
References: <196@rna.UUCP> <6671@bloom-beacon.MIT.EDU>
Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi)
Organization: CS Dept, Ball St U, Muncie, Indiana
Lines: 17


In response to the request for a solution to the problem of how to
create a binary file under VAX/VMS that allows arbitrary seeks:  There
is no ideal solution (other than switching to UNIX, of course), but you
can get by if you use stream-LF files.

Kermit will not let you transfer a stream-LF file without risking
corrupting it with newline conversions.  The standard VMS "Kermit-32"
won't treat a stream-LF file as a binary file and sends it line by line
instead.

Kermit transfer can still be done, however.  My bilf.c utility (that is
included with source code for zoo 2.0) will convert between stream-LF
and fixed-length-record (FLR) files.  So to do a Kermit transfer, use
bilf.c to convert to FLR format, then transfer with Kermit as a binary
file.  Or the other way around.
-- 
Rahul Dhesi         UUCP:  !{iuvax,pur-ee,uunet}!bsu-cs!dhesi