removing leading white space?
  Home FAQ Contact Sign in
comp.lang.fortran only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.fortran Profile…
 Up
removing leading white space?         


Author: badger
Date: Jul 28, 2008 05:53

Hi all,

I'm trying to print a formatted print and I can't seem to find the
option to remove the leading white space from my WRITE statement. Is
this possible, I assume it is?

WRITE ( stdout, '(I4)' , ADVANCE = 'NO' ) temp

it should print something like for example

0 0 12 35 0
34 0 0 1 0

but instead im getting

0 0 12 35 0
34 0 0 1 0

ie a leading white space before the first digit.

Many thanks.
5 Comments
Re: removing leading white space?         


Author: robert.corbett
Date: Jul 28, 2008 06:00

On Jul 28, 5:53 am, badger gmail.com> wrote:
> Hi all,
>
> I'm trying to print a formatted print and I can't seem to find the
> option to remove the leading white space from my WRITE statement. Is
> this possible, I assume it is?
>
> WRITE ( stdout, '(I4)' , ADVANCE = 'NO' ) temp
>
> it should print something like for example
>
> 0 0 12 35 0
> 34 0 0 1 0
>
> but instead im getting
>
> 0 0 12 35 0
> 34 0 0 1 0
>
> ie a leading white space before the first digit. ...
Show full article (0.73Kb)
no comments
Re: removing leading white space?         


Author: badger
Date: Jul 28, 2008 06:17

On 28 Jul, 14:00, robert.corb...@sun.com wrote:
> On Jul 28, 5:53 am, badger gmail.com> wrote:
>
>
>
>> Hi all,
>
>> I'm trying to print a formatted print and I can't seem to find the
>> option to remove the leading white space from my WRITE statement. Is
>> this possible, I assume it is?
>
>> WRITE ( stdout, '(I4)' , ADVANCE = 'NO' ) temp
>
>> it should print something like for example
>
>> 0 0 12 35 0
>> 34 0 0 1 0
>
>> but instead im getting
> ...
Show full article (0.84Kb)
no comments
Re: removing leading white space?         


Author: Gib Bogle
Date: Jul 28, 2008 16:24

> On Jul 28, 5:53 am, badger gmail.com> wrote:
>> Hi all,
>>
>> I'm trying to print a formatted print and I can't seem to find the
>> option to remove the leading white space from my WRITE statement. Is
>> this possible, I assume it is?
>>
>> WRITE ( stdout, '(I4)' , ADVANCE = 'NO' ) temp
>>
>> it should print something like for example
>>
>> 0 0 12 35 0
>> 34 0 0 1 0
>>
>> but instead im getting
>>
>> 0 0 12 35 0
>> 34 0 0 1 0
>> ...
Show full article (0.88Kb)
no comments
Re: removing leading white space?         


Author: nospam
Date: Jul 28, 2008 16:51

Gib Bogle auckland.no.spam.ac.nz> wrote:
>> On Jul 28, 5:53 am, badger gmail.com> wrote:
>>>
>>> I'm trying to print a formatted print and I can't seem to find the
>>> option to remove the leading...
Show full article (1.87Kb)
no comments
Re: removing leading white space?         


Author: robert.corbett
Date: Jul 30, 2008 22:45

On Jul 28, 4:51 pm, nos...@see.signature (Richard Maine) wrote:
> Gib Bogle auckland.no.spam.ac.nz> wrote:
>> robert.corb...@sun.com wrote:
>>> On Jul 28, 5:53 am, badger gmail.com> wrote:
>
>>>> I'm trying to print a formatted print and I can't seem to find the
>>>> option to remove the leading white space from my WRITE statement. Is
>>>> this possible, I assume it is?
>
>>>> WRITE ( stdout, '(I4)' , ADVANCE = 'NO' ) temp
>
>>>> it should print something like for example
>
>>>> 0 0 12 35 0
>>>> 34 0 0 1 0
>
>>>> but instead im getting
>
>>>> 0 0 12 35 0
>>>> 34 0 0 1 0 ...
Show full article (2.10Kb)
no comments