I wrote small program to read and write a character. But it gives error messages.
read *, str
print *, str
end program check1
When i ran this program, it gave following error.
Error 2 Compilation Aborted (code 1) J:\Personal Works\Fortran\CHECK\check1\check1\check1.f90 1
Error 1 error #6832: This passed length character name has been used in an invalid context. [STR]
I could not find any error in the source code. Anyone can explain what is wrong with this code.