program test_trim character(len=30)::test test = ' nuts' print *,'X',trim(test) end
In the posted text there were a lot of spaces before 'nuts' however, the forum software seems to have removed them, making my query somewhat unclear. Please comment on why trim is not working. Thank you.