users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to redirect stdout


From: Lindsey Spratt
Subject: Re: How to redirect stdout
Date: Tue, 1 Mar 2005 10:02:17 -0500

Perhaps flush_output(F) before the close(F), or simply 'flush_output', would help.
Lindsey

On Mar 1, 2005, at 3:04 AM, Alexandre Saidi wrote:

Thanks for your help.

I'd already tried :

| ?-open('/home/alex/fichier',write,F), current_output(Old), set_output(F), a_call, close(F), set_output(Old).

But the file 'fichier' is of size 0 !

So what's wrong with my code?
should I flush something ?

regards.

AS





reply via email to

[Prev in Thread] Current Thread [Next in Thread]