Hi,
I have a problem with a large matrix… I want to write row by row into separate files and later read them. So I need something like this (in f77):
do i=1,m
do j=1,n
row(j)=matrix(i,j)
enddo
open(1,FILE='ROW_J.txt', STATUS='NEW')
write(1,*) (row(j), j=1,n)
close(1)
enddo
**************************************
!and later
do i=1,m
open(1,FILE='ROW_J.txt', STATUS='OLD')
do j=1,n
read(1,*) row( j)
enddo
close(1)
enddo
Is it possible to do something like this?
Thanks for help
I have a problem with a large matrix… I want to write row by row into separate files and later read them. So I need something like this (in f77):
do i=1,m
do j=1,n
row(j)=matrix(i,j)
enddo
open(1,FILE='ROW_J.txt', STATUS='NEW')
write(1,*) (row(j), j=1,n)
close(1)
enddo
**************************************
!and later
do i=1,m
open(1,FILE='ROW_J.txt', STATUS='OLD')
do j=1,n
read(1,*) row( j)
enddo
close(1)
enddo
Is it possible to do something like this?
Thanks for help