- #1
Taylor_1989
- 402
- 14
Hi, guys I am very new to programming in fortran90 and I am just experimenting with stuff. I have been trying to get my output of my loop program to a text file. But for some reason it will not work. Could someone please advise.
Code displayed below:
PROGRAM loop
IMPLICIT NONE
integer :: counter
open(10, file='jason.txt')
do counter= 1,10,1
WRITE(*,*) 'Jason', counter
end do
close(10)end program loop
Code displayed below:
PROGRAM loop
IMPLICIT NONE
integer :: counter
open(10, file='jason.txt')
do counter= 1,10,1
WRITE(*,*) 'Jason', counter
end do
close(10)end program loop