From: Robin on
how do I printing output in fortran without preceding white space
in fotran...wondering,

complete beginner,
-R
From: glen herrmannsfeldt on
Robin <robin1(a)cnsp.com> wrote:

> how do I printing output in fortran without preceding white space
> in fotran...wondering,

Can you be a little more specific?

> complete beginner,

List directed output does tend to have a lot of white space.
If you use an explicit format, you can specify exactly how much
space you want for each item.

-- glen
From: robin on
"Robin" <robin1(a)cnsp.com> wrote in message news:4d6cdd90-456e-4e70-bbe2-deda1d0e6177(a)x27g2000yqb.googlegroups.com...
| how do I printing output in fortran without preceding white space
| in fotran...wondering,

You can do an internal WRITE, followed by ADJUSTL function
(along with TRIM, if required).

| complete beginner,
| -R


From: Gib Bogle on
Robin wrote:
> how do I printing output in fortran without preceding white space
> in fotran...wondering,
>
> complete beginner,
> -R

In addition, if you want to get rid of the prepended space character that is
generated by
write(*,*) 'This text'
you can use
write(*,'(a)') 'This text'
From: Uno on
Gib Bogle wrote:
> Robin wrote:
>> how do I printing output in fortran without preceding white space
>> in fotran...wondering,
>>
>> complete beginner,
>> -R
>
> In addition, if you want to get rid of the prepended space character
> that is generated by
> write(*,*) 'This text'
> you can use
> write(*,'(a)') 'This text'

I can never remember that when I need to know it.
--
Uno