Re: redirecting units 5 and 6 to a file.
From: Richard Maine (nospam_at_see.signature)
Date: 01/30/04
- Next message: David Ham: "Re: Size of Largest Array?"
- Previous message: TLowe: "Size of Largest Array?"
- In reply to: glen herrmannsfeldt: "Re: redirecting units 5 and 6 to a file."
- Next in thread: Pierre Asselin: "Re: redirecting units 5 and 6 to a file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 10:08:54 -0800
glen herrmannsfeldt <gah@ugcs.caltech.edu> writes:
> If it is being left in the buffer, the traditional answer to
> that was the ENDFILE statement.
>
> Normally the buffer would be flushed when the program ends, but
> I presume the program isn't ending yet, but you need the results
> out.
I had similar thoughts on seeing this, except that CLOSE is more
appropriate than ENDFILE. ENDFILE is rarely useful these days. It
might happen to have the side effect of flushing the buffer (not
guaranteed, but it might), but CLOSE is much more to the point.
Also, buffering mode is something that is often different for disk
files than for standard output. Often, disk files are buffered for
efficiency, while standard output s unbuffered (or anyway, line
buffered) so that you can see output right away. Seems consistent
with what I recall of the reported symptoms. I didn't go back and
reread the original post with this in mind, but at least this sounds
like what I recall of it.
-- Richard Maine | Good judgment comes from experience; email: my first.last at org.domain | experience comes from bad judgment. org: nasa, domain: gov | -- Mark Twain
- Next message: David Ham: "Re: Size of Largest Array?"
- Previous message: TLowe: "Size of Largest Array?"
- In reply to: glen herrmannsfeldt: "Re: redirecting units 5 and 6 to a file."
- Next in thread: Pierre Asselin: "Re: redirecting units 5 and 6 to a file."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|