Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!akgua!mhuxv!mhuxt!houxm!ihnp4!ucbvax!YALE.ARPA!LEICHTER-JERRY From: LEICHTER-JERRY@YALE.ARPA Newsgroups: mod.computers.vax Subject: Re: VAX/VMS (FORTRAN) - record count Message-ID: <8609141212.AA18219@ucbvax.Berkeley.EDU> Date: Sun, 14-Sep-86 08:13:02 EDT Article-I.D.: ucbvax.8609141212.AA18219 Posted: Sun Sep 14 08:13:02 1986 Date-Received: Mon, 15-Sep-86 02:15:43 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Organization: The ARPA Internet Lines: 12 Approved: info-vax@sri-kl.arpa I'm writing a little program that needs to know the number of records in a standard ascii file on a VAX running VMS 4.4. I am reading until EOF and counting them now, but I would like a faster way if possible. No record is kept of the number of records in a "standard ascii file", which I take to mean a file with variable-length records (so that you can't just look at total size and divide by the length of a fixed record). What you are doing is the only after-the-fact approach possible. (If you are the one writing the file, you can of course keep track yourself and store the infor- mation away.) -- Jerry -------