home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!bonnie.concordia.ca!daily-planet.concordia.ca!donald!david
- From: david@donald.concordia.ca (David Gaudine)
- Newsgroups: comp.lang.fortran
- Subject: Re: Unix fortran question
- Message-ID: <4905@daily-planet.concordia.ca>
- Date: 11 Sep 92 00:23:29 GMT
- References: <Bu9tsE.HJ0@wpi.WPI.EDU>
- Sender: usenet@daily-planet.concordia.ca
- Organization: Concordia University
- Lines: 16
-
- In article <Bu9tsE.HJ0@wpi.WPI.EDU> llew@coal.WPI.EDU (Lok C. Lew Yan Voon) writes:
- > read(ninp,*) slr2 , slr3 , slr4
- >
- >while the corr. line in the input file is
- >
- > 0.0d0,0.0d0,0.0d0;
- >
- >Actually, it seems like. f77 didn't like the absence of
- >space b/w the last real*8 and the ';' character.
-
- As I recall, most compilers will give an error message such as
- "NON-FORTRAN CHARACTER ON INPUT", since FORTRAN doesn't allow a ";" to be
- used anywhere in the source or data except in a character constant or
- when reading in an "A" format. This example doesn't look like one
- where list-directed I/O should be used, I'd read it as a string and
- use an internal READ (see article 9405).
-