I have to read input data in my Fortran 77 program. It Looks as following
FILENAME PATH
temperature ./Data
and then in the Fortran code I proceed as following
CHARACTER*8 FILENAME,PATH
READ(5,'(A80)') CARDIN
READ(5,*) FILENAME,PATH
but the problem is that I don't know the length of FILENAME and PATH in advance. So what if the user doesn't give names that are not exactly 8? Do you have any idea how I can solve this?
charactertypes. I don't know of any way to achieve your goal without resorting to features from newer Fortran standards.