Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!ll-xn!adelie!morgoth!dmb
From: dmb@morgoth.UUCP (David M. Brown)
Newsgroups: comp.lang.fortran
Subject: Any way to fseek() in MS-Fortran under DOS?
Keywords: seek, MS-Fortran, MS-DOS
Message-ID: <472@morgoth.UUCP>
Date: 8 Jul 88 01:03:14 GMT
Organization: Goldberg-Zoino and Assoc., Newton, MA
Lines: 23

[IBM-AT...MS-Fortran...MS-DOS]

I am writing an application which reads in data from a file.  I want
to be able to comment out lines of data.  I did this on my old system
(Ultrix on uVAX II) by using fseek().  It wasn't pretty but it worked.

What I want to do is look at the first character in the line, and, if 
it's a '#', just go on to the next line.  No problem there.  But, if it's
not, then I want to read data from the rest of the line.

The backslash edit descriptor doesn't seem to work on input.  The lines
in the file are of various lengths, so direct access won't work. 

Anyone have any ideas?

David Brown
{harvard | ll-xn | mirror}!adelie!morgoth!dmb
ICF Technology, Robinson Plaza II, Suite 200, Pittsburgh, PA  15205
(412) 788-9200

 WE CHALLENGE our traditions
      BECAUSE we believe
        TRUTH without questioning
     IS FALSE