Re: How do you _really_ get a PrintStream to flush all the time?



On Thu, 29 Sep 2005 10:04:12 -0400, "Rob McDonald"
<robm@xxxxxxxxxxxxxxxxxxxxxx> wrote or quoted :

>Unfortunately, writing to the console isn't at all deterministic. Messages
>get trimmed. They are printed out of order, linefeeds don't happen.
>Generally, it is a mess. And no end of flush() does any good at all...

See http://mindprod.com/applets/fileio.html

Pour out your sorrows to it, and it will show you how to use
autoflush.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: How do you _really_ get a PrintStream to flush all the time?
    ... writing to the console isn't at all deterministic. ... They are printed out of order, linefeeds don't happen. ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Help me!!
    ... >> I am writing an intepreter for a mathematical language. ... >> console for the interpreter that can be invoked from within the GUI ... But this solution separates input area from output area. ...
    (comp.lang.java.gui)
  • Re: CallBack function is not not working .............
    ... You didn't mention you were writing a console based application. ... significant because you will not have a Windows message pump. ... Particulalry if you are new to TAPI. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: i feel so stupid
    ... maybe, MAYBE, somehow, through writing, i can write my out of this mess ... write my WAY out of this mess. ... whoever is putting it here, whoever is making this space available to ...
    (rec.music.dylan)
  • Starting a console application from parameters
    ... I'm writing a Console Application and I would like to start it only if I pass to it a param: ... myapp.exe --> I write usage reference ...
    (microsoft.public.dotnet.languages.vb)