From: utzoo!decvax!harpo!eagle!mhuxt!mhuxa!mhuxh!mhuxm!mhuxv!burl!rcj
Newsgroups: net.unix-wizards
Title: RE: (sort of) Fortran-to-C translator
Article-I.D.: burl.47
Posted: Fri Jan 21 11:10:01 1983
Received: Sat Jan 22 03:53:02 1983

A cry for help!!

I need to read a file of contiguous bytes (could be almost any size)
into an f77 array (i.e., block of memory; I don't care what data type
it is read into as long the bytes remain contiguous -- Guess character
would be best).  f77 will let me declare a file as sequential and
unformatted, but it then ignores the record length descriptor because
the file was opened for sequential access.  (This is all in the manual).
It apparently assumes a record length and expects special BOR and EOR
characters which are not, of course, present in the file that I wish
to read.

I have a temporary solution by having f77 call a C routine (as a subroutine
rather than as a function, by the way, interesting the way the parameter
passing is done) to do its file opening and reading for it; it works
very nicely.  One problem:  what I am writing is supposed to be in
f77 exclusively (I HATE FORTRAN!!!).

Any help on how to do this in f77 would be greatly appreciated.

Thank RITCHIE & KERNIGHAN for Unix and her Wizards,

The MAD Programmer	Cor
alias:  Curtis Jackson	...!floyd!burl!rcj
			...!sb1!burl!rcj
			...!mhuxv!burl!rcj