Re: need some help with I/O

From: Irrwahn Grausewitz (irrwahn33_at_freenet.de)
Date: 11/18/03


Date: Tue, 18 Nov 2003 23:48:31 +0100


"Les Coover" <lcc66604@cox.net.spam> wrote:

> Works on MS-DOS using control-c or control-z but not on
> UNIX using control-d or control-c
>
> I will work on a graceful way to exit the loop.

That's definitely the best way to deal with the problem. And
when you're done you can forget about the call to fflush; when
the fclose is reached after exiting the loop, the output buffer
will automatically be flushed.

Regards

-- 
Irrwahn 
(irrwahn33@freenet.de)


Relevant Pages

  • Re: Infinite Loops and Explicit Exits
    ... > CS> One of these proposals relaxes the current restriction that an EXIT ... > termination of the loop is not visible at that point. ... > terminating condition is visible in that context. ... > You now want to allow this remote procedure, ...
    (comp.lang.cobol)
  • Re: Houston-related rants was Re: forced merges/inside lane merges/AASHTO "tapered merges"
    ... >> Are you sure about the North Loop and I-45? ... >> in particular the westbound exit for Fondren/Gessner. ... How could HCTRA put an exit ramp for eastbound ... and the West Houston Center Blvd exit still shows Old Westheimer ...
    (misc.transport.road)
  • Re: Strategies with SPARK which does not support exceptions
    ... The only way of interrupting a code sequence in SPARK is the exit ... pass' loop with an unconditional exit at the end. ...    Some complicated code that might set OK; ...
    (comp.lang.ada)
  • Re: need some help with I/O
    ... >> I will work on a graceful way to exit the loop. ... Providing a graceful exit from the loop may greatly reduce the ... the fflush or change the buffering mode to line buffering. ...
    (comp.lang.c)
  • Re: Exit Do
    ... I've been instructed by a dot net / asp programmer that Exit Do is ... I am using nested loops and need to exit out of one loop into ... Code Stage B ... likely to lead to bugs and readability problems. ...
    (microsoft.public.scripting.vbscript)