Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

integral programming in fortran

Status
Not open for further replies.

sadeghiut

Programmer
Mar 9, 2020
2
CA
hi guys
i want to write a fixed fortran program that give a txt file from user and calculate Exponential Integral base on data file. also the number of line is unknown and the program must determined.
can you help me with that.
for example the txt file like below:
25 36
14 56
17 98
14 24
...
...
 
Use end=label in your read statement

Code:
    ! open the file ihandle is the file descriptor
    ....
    do
        read(ihandle,*, end=999) n1, n2
        ! do something with n1 and n2
        ...
    end do
999 continue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top