Re: [Activetcl] file content does not update
by Mahmood Naderan other posts by this author
Oct 30 2009 7:32AM messages near this date
view in the new Beta List Site
Re: [Activetcl] file content does not update
|
Re: [Activetcl] file content does not update
> Thomas: Flushing on a closed file handle brings nothing!
> Larry: A flush after the close should make no difference
Well when I add it after 'close' function, the problem solved. You are right but now the que
stion is different.... why it worked? ;)
�
> The only think I can think of that might be going on would be if the file were still opened
in another part of the program.
That file is opened and closed only in that function, but after destroying the "save" window
, the control is get back to my main window. Do you mean that returning from a child window
(toplevel) to its parent, casue the 'close' function not to operate correctly?
�
_mnaderan_
________________________________
From: Larry W. Virden <lvirden@[...].com>
To: Mahmood Naderan <nt_mahmood@[...].com>
Sent: Fri, October 30, 2009 5:47:43 PM
Subject: Re: [Activetcl] file content does not update
A flush after the close should make no difference. And, as you noted,
the close itself should do a flush.The only think I can think of that
might be going on would be if the file were still opened in another
part of the program.
On Fri, Oct 30, 2009 at 9:23 AM, Mahmood Naderan <nt_mahmood@[...].com> wrote:
> >try to include to flush $out2
> Thanks that did the job, but I think 'close' command should also flush the
> buffer.
> accrding to manual�for 'close' command�"All buffered output is flushed to
> the channel's output device". Then why should I use 'flush' seperatly after
> 'close':
>
> ��� set out2 [open "cabprop.dat" a+]
> �� �# add some strings
> �� �close $out2
>
> ��� flush $out2
> ����# destroy window
>
>
>
> _mnaderan
>
> ________________________________
> From: Tillmann A. Basien | ToolBox Solution GmbH <tab@[...].de>
> To: Mahmood Naderan <nt_mahmood@[...].com>
> Sent: Fri, October 30, 2009 12:19:35 PM
> Subject: Re: [Activetcl] file content does not update
>
> try to include to flush $out2
> ...
>
--
Tcl - The glue of a new generation.� http://wiki.tcl.tk/
Larry W. Virden
http://www.xanga.com/lvirden/
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
Thread:
Mahmood Naderan
Mahmood Naderan
Mahmood Naderan
Larry W. Virden
Thomas Wunderlich
|