Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

List-directed unformatted read problems

$
0
0

I was just reading jm-nichols post on some "old code" and unformatted reads and noted a similar problem I was having with somewhat similar code:

REAL TIME
CHARACTER (LEN = 8) NAME
INTEGER IX, IY, IZ, IDX, ITYPE
! INPUT_CODE is an input parameter, the UNIT number
READ(INPUT_CODE,*) NAME, TIME, IX, IY, IZ, IDX, ITYPE

I was getting a cold hard crash when the input stream had a forward slash in the name.  Are the admissible characters you can read into a character string with an unformatted READ documented somewhere?  Might this behavior have something to do with my compiler settings?


Viewing all articles
Browse latest Browse all 3108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>