Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does `end` mean in a Fortran read statement?

Tags:

fortran

What does the end= in this code snippet mean?

read(portNum, 100, end =900) readline  

P.S. I already tried Google to find this, without luck.

like image 460
user3600286 Avatar asked Nov 14 '25 11:11

user3600286


1 Answers

@user3600286:

Quoted directly from this pdf:

END=900 instructs the program to go to heading 900 in the event all records have been read

The 'readline' at the end appears to be a string variable (would have been defined earlier in the program) that temporarily holds each line read in from the file.

like image 199
trevor Avatar answered Nov 17 '25 10:11

trevor