home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / fortran / 3509 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.0 KB

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