Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: advance=no ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 38 of 46 Topic 8227 of 8775
Post > Topic >>

Re: advance=no problem

by GaryScott <garylscott@[EMAIL PROTECTED] > May 14, 2008 at 08:22 AM

On May 14, 9:47=A0am, nos...@[EMAIL PROTECTED]
 (Richard Maine) wrote:
> GaryScott <garylsc...@[EMAIL PROTECTED]
> wrote:
> > On May 14, 1:36 am, robert.corb...@[EMAIL PROTECTED]
 wrote:
> > > On May 13, 8:05 pm, robert.corb...@[EMAIL PROTECTED]
 wrote:
>
> > > > On May 13, 6:33 pm, nos...@[EMAIL PROTECTED]
 (Richard Maine) wrote:
> > > > It does look as if I got it wrong. =A0Here is an example. =A0Given
> > > > the program
>
> > > > =A0 =A0 =A0 PROGRAM MAIN
> > > > =A0 =A0 =A0 =A0 OPEN (10, FILE=3D'XXX')
> > > > =A0 =A0 =A0 =A0 REWIND 10
> > > > =A0 =A0 =A0 =A0 WRITE (10, '(A)', ADVANCE=3D'NO') 'ABCDEF'
> > > > =A0 =A0 =A0 =A0 WRITE (10, '(T1, A)') 'GHI'
> > > > =A0 =A0 =A0 END
>
> > > When I compile and run the program with a handful of different
> > > compilers, ifort 8.0 appears to be the odd man out. =A0Do more
> > > recent versions of ifort still write
>
> > > GHIDEF
>
> > > to the file XXX? =A0 Do other implementations?
>
> > > Bob Corbett
>
> > CVF 6.6 produces GHIDEF also. =A0Removing the "T1," above produces
> > ABCDEFGHI.
>
> > So in the "correct" implentation, how do you produce GHIDEF in a
> > standard conforming way?
>
> You can't - not with advance=3D'no'. Sort of the whole point is that
when
> a write statement completes, the result might actually be physically
> writen. The standard doesn't require that, but it is purposefully
> designed to encourage, or at least allow, that. You can't undo what has
> been written. Or, in more memorable words than mine, yet very apt:
>
> =A0 The Moving Finger writes; and, having writ,
> =A0 Moves on: nor all your Piety nor Wit
> =A0 Shall lure it back to cancel half a Line,
> =A0 Nor all your Tears wash out a Word of it
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- Omar
Kha=
yyam
>
> Even the "half a line" bit seems perfect.

Unfortunate.  Even if the partial line had been flushed, I can't think
of any output device that can't achieve the desired result.  If there
were one, it would be a rare case.  One of my main desires for
advance=3Dno is to be able to overlay as CVF originally sup****ted,
although I've converted nearly everything to GUIs now, so this type of
processing is less im****tant for me.

>
> --
> Richard Maine =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0| Good judgement
come=
s from experience;
> email: last name at domain . net | experience comes from bad judgement.
> domain: summertriangle =A0 =A0 =A0 =A0 =A0 | =A0-- Mark Twain- Hide
quoted=
 text -
>
> - Show quoted text -
 




 46 Posts in Topic:
advance=no problem
rudra <bnrj.rudra@[EMA  2008-05-12 06:22:39 
Re: advance=no problem
rudra <bnrj.rudra@[EMA  2008-05-12 06:40:16 
Re: advance=no problem
Gordon Sande <g.sande@  2008-05-12 13:50:13 
Re: advance=no problem
harper@[EMAIL PROTECTED]   2008-05-13 11:47:46 
Re: advance=no problem
tholen@[EMAIL PROTECTED]   2008-05-12 19:26:06 
Re: advance=no problem
glen herrmannsfeldt <g  2008-05-12 11:43:13 
Re: advance=no problem
tholen@[EMAIL PROTECTED]   2008-05-12 20:12:12 
Re: advance=no problem
Janne Blomqvist <foo@[  2008-05-12 23:32:04 
Re: advance=no problem
glen herrmannsfeldt <g  2008-05-12 13:09:41 
Re: advance=no problem
Janne Blomqvist <foo@[  2008-05-13 00:48:07 
Re: advance=no problem
"James Giles" &  2008-05-12 20:32:24 
Re: advance=no problem
Janne Blomqvist <foo@[  2008-05-12 23:55:24 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-12 16:31:12 
Re: advance=no problem
glen herrmannsfeldt <g  2008-05-12 15:47:07 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-13 00:42:30 
Re: advance=no problem
GaryScott <garylscott@  2008-05-13 07:21:14 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-13 08:57:42 
Re: advance=no problem
GaryScott <garylscott@  2008-05-13 09:46:51 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-13 15:59:48 
Re: advance=no problem
"James Giles" &  2008-05-13 23:10:25 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-13 17:05:52 
Re: advance=no problem
"James Giles" &  2008-05-14 00:38:23 
Re: advance=no problem
"James Giles" &  2008-05-14 00:57:05 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-13 18:33:40 
Re: advance=no problem
"James Giles" &  2008-05-14 02:48:43 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-13 20:05:16 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-13 20:45:00 
Re: advance=no problem
Steve Lionel <Steve.Li  2008-05-14 10:07:48 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-13 23:36:34 
Re: advance=no problem
"Jugoslav Dujic"  2008-05-14 09:11:21 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-14 00:39:12 
Re: advance=no problem
GaryScott <garylscott@  2008-05-14 07:18:32 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-14 07:47:59 
Re: advance=no problem
Ron Shepard <ron-shepa  2008-05-14 10:11:23 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-14 12:12:11 
Re: advance=no problem
glen herrmannsfeldt <g  2008-05-14 13:01:00 
Re: advance=no problem
glen herrmannsfeldt <g  2008-05-14 11:09:33 
Re: advance=no problem
GaryScott <garylscott@  2008-05-14 08:22:03 
Re: advance=no problem
"James Giles" &  2008-05-14 18:41:44 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-14 12:12:11 
Re: advance=no problem
Gary Scott <garylscott  2008-05-14 20:59:30 
Re: advance=no problem
"James Giles" &  2008-05-15 02:30:21 
Re: advance=no problem
nospam@[EMAIL PROTECTED]   2008-05-14 20:44:10 
Re: advance=no problem
robert.corbett@[EMAIL PRO  2008-05-14 23:19:22 
Re: advance=no problem
dongyuanxun <dongyuanx  2008-05-15 01:11:12 
Re: advance=no problem
GaryScott <garylscott@  2008-05-15 07:00:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Oct 13 3:20:16 CDT 2008.