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

Q about fortran Formatted I/O

$
0
0

When I have a READ statement like:

read(2,*)i1,i2,iop,i3,i4,i5,i6

where i1,2,i3,i4,i5,i6  are INTEGER

and iop is character*1

and my input line is:

1 2 / 3 4 5 6

it ignores the remaining part of the line starting with the / character.

So only i1 and i2 get read in.

 

Does a / have a special meaning on an input line?

Is there a way it can be treated the same as any other character?

The reason I am asking, is that the possible choices are : +  -  /  and *

The other choices read in normally. Maybe this is discussed in detail somewhere?


Viewing all articles
Browse latest Browse all 3108

Latest Images

Trending Articles



Latest Images

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