It is possible you are using a version of Fortran with carriage control in the formats. Some have it, some don't. The interpretation of the first character varies. Normally 1 means form feed which may be why you are seeing blanks. Try 1X, before your print string format.
More than likely you are using list directed output:
write (*,*) 'hello'
or
print *, 'hello'
List directed output on some compilers prints a blank character first. To print directly (without blank charater)use explicit formatting :
write (*,'(A)') 'hello'
or
print '(A)', 'hello'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.