On Jan 20, 2006, at 10:48 PM, Richard Wang wrote:
[code elided]
> When I see the file1 in the subroutine using a debugger, the type of
> file1 becomes character*1 (?).
Sounds like an artifact of the debugger to me. I suspect the code is
working fine. (You would not get symptoms even vaguely like this from
omitting the USE, as suggested by Robin; you'd get a failure to link).
Check using len(myfile) in the subroutine to make sure that the code is
working correctly, but I suspect that it is.
I might theorize that the debugger doesn't know how to show the length
if its isn't known at compile time, butthat's just a guess.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|