I need to use @, the 'at' character, as a prefix to certain data that I am using. However, keyboard entry and screen display doesn't seem to work. Maybe this is documented somewhere, but I can't find it.
A simple program demonstrates the problem:
program testchars
character*1 testch
write (*,*) 'this should display four at chars @@@@'
write (*,*) 'please input char @'
read (*,*) testch
write (*,*) 'character entered=',testch
pause
stop
end
It displays two @ characters to start with, not the four supplied in the write statement. The second write doesn't display any. The keyboard read followed by write also doesn't display any.
Is there some simple solution such as a compiler switch to allow @ to be handled just like any other character? I don't see any similar problem with other special characters like & or * or %