Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!emory!wuarchive!cs.utexas.edu!uunet!munnari.oz.au!uniwa!vax7!tgumleyle From: Gumley_LE@cc.curtin.edu.au (Liam Gumley) Newsgroups: comp.lang.fortran Subject: VAX/VMS Fortran: Record length in BYTES Message-ID: <5125.2767b5c5@cc.curtin.edu.au> Date: 13 Dec 90 09:09:24 GMT Organization: Curtin University of Technology Lines: 28 Re: VAX/VMS Fortran I have to write a series of data buffers to a file, each of which is 13730 bytes long. Note that this is not a multiple of four. The file I am creating MUST have a record length of 13730 bytes, and MUST only contain the data in the buffer i.e. no record length markers or terminators etc. - it is essentially an image file. So I cannot use an 'unformatted' type file, as these must have record lengths which are multiples of longwords - 13730 won't work in VAX/VMS Fortran. I can use write statements on a 'formatted' file, but the use of code such as byte buffer(13730) write(disk,10) buffer 10 format(13730a1) appears to slow down the write statement considerably. I have tried various hacks with internal writes, different file formats, but I always end up with something which is darned slow at writing. Can I do anything to speed up the writes to a 'formatted' file? Why doesn't VAX/VMS Fortran let you specify the record lengths in BYTES? Cheers, Liam. -- #Liam E. Gumley, Department of Applied Physics, Curtin University of Technology# #Perth, Western Australia. >>>All opinions expressed are exclusively mine.<<<#