Christian Aperghis-Tramoni writes:
> I have the folowing program :
>
> print "Give me an integer number : Ân"
> getstdinP0
> readline S1,P0
>
> Its execution gives :
>
> 10
> Give me an integer number :
>
> How is it possible to flush stdout before reading the number
On Thu Nov 4 11:53:45 2004, Christian Aperghis-Tramoni wrote:
>
> It means the equivalent of the $| in Perl.
You can switch off buffering on stdout by doing:
getstdout P1
pioctl I0, P1, 3, 0
To switch back to line buffering, do:
getstdout P1
pioctl I0, P1, 3, 1
--
Marty