Xref: utzoo comp.lang.c:12069 comp.os.vms:8256 Path: utzoo!utgpu!water!watmath!egisin From: egisin@watmath.waterloo.edu (Eric Gisin) Newsgroups: comp.lang.c,comp.os.vms Subject: Re: VMS C file type and stdio - help! Message-ID: <20577@watmath.waterloo.edu> Date: 25 Aug 88 22:32:05 GMT References: <196@rna.UUCP> <6671@bloom-beacon.MIT.EDU> <3689@bsu-cs.UUCP> <618@philmds.UUCP> Organization: U of Waterloo, Ontario Lines: 15 In article <618@philmds.UUCP>, leo@philmds.UUCP (Leo de Wit) writes: > In article <20448@watmath.waterloo.edu> egisin@watmath.waterloo.edu (Eric Gisin) writes: > |You can create the file in C as a stream-LF file, > |then change the file type to binary stream (UDF, no record attribute). > To convert file types in VMS, use convert ( 8-). The convert utility does not do what they wanted. It will expect the input file to have a valid record structure, which is generally not the case when binary data is written by C programs. Convert will also "drop" '\n's, and start a new record. What I meant is change the file type in the "file header" (I forget the correct term, I'm refering to the on-disk equivalent of the FAB) without changing the file data.