Cannot print subsequent rows of array to file
问题 I'm trying to write a rudimentary bit of code to print a 50*50 array called 'arr'. Unfortunately it so far only prints the first row of the array, although the formatting for that row is correct. I've attached the code below and was wondering if anyone could point out where I was going wrong? Thank you! program testing implicit none integer :: i, j integer, dimension (1:50, 1:50) :: arr arr = 1 do i=1,50 open(unit=6, file= "array.txt", action="write") write(6, '(2500I3)') (arr(i,j), j=1,50)