Google Groups Home
Help | Sign in
Message from discussion WRITE without newline?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
LC's No-Spam Newsreading account  
View profile
 More options Jun 1 1998, 3:00 am
Newsgroups: comp.lang.fortran
From: LC's No-Spam Newsreading account <nos...@ifctr.mi.cnr.it>
Date: 1998/06/01
Subject: Re: [Q] WRITE without newline?

On Fri, 29 May 1998 ARyabt...@my-dejanews.com wrote:

> > > How do you do the equivalent of a WRITE statement without appending a
> > > newline?  I want to do several disjoint WRITE's that output onto the same
> > > line.
> >          write (*,'(A,2x,I5)') '+ Number= ',  i

> Yes! it'll be print on the same line but from the begining of the line!

  The + (1H+ for those who remember Hollerith codes) is a feature intended
  for old printers (and need a print filter to work on modern one), and I
  won't really regret if this one REALLY goes on the OBSOLESCENT or
  OBSOLETE list.

> I think, the question was how to continue printing on the same line.
> It is depend on compiler. For example MS Fortran use back slash format
> 1000  FORMAT(' Input value for I - ' \)

> As I remeber some other compiler use '$' instead '\'

  Most Unix (Sun Ultrix DU=OSF HP-UX) and VMS use $.
  Old HP RTE used underscore

  I believe Fortran 90 has a NOADVANCE option to handle this standardly.

----------------------------------------------------------------------
nos...@ifctr.mi.cnr.it is a newsreading account used by more persons to
avoid unwanted spam. Any mail returning to this address will be rejected.
Users can disclose their e-mail address in the article if they wish so.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google