hey people,
doing some research with HDF files, I want to list the file names within a file called say 'names.txt'
when using the below code, when i alter the number of file names the code works occassionally and other times it doesnt. can you see why ?
subroutine readme (aString)!input would be names.txt
use L2Parameters !Array 'holder' defined here
implicit none
character(len=60) :: aString
integer::n,ios
print*,'Opened readme'
open(9,file=aString,status='old')
do n=1,size(holder)
read(9,*,iostat=ios,err=100)
enddo
if (ios /= 0) stop 'I/O problem reading too file'
100 print*,'Error occured reading from file'
close(9)
end subroutine readme
doing some research with HDF files, I want to list the file names within a file called say 'names.txt'
when using the below code, when i alter the number of file names the code works occassionally and other times it doesnt. can you see why ?
subroutine readme (aString)!input would be names.txt
use L2Parameters !Array 'holder' defined here
implicit none
character(len=60) :: aString
integer::n,ios
print*,'Opened readme'
open(9,file=aString,status='old')
do n=1,size(holder)
read(9,*,iostat=ios,err=100)
enddo
if (ios /= 0) stop 'I/O problem reading too file'
100 print*,'Error occured reading from file'
close(9)
end subroutine readme