ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] file content does not update
by Mahmood Naderan other posts by this author
Oct 30 2009 6:23AM messages near this date
view in the new Beta List Site
[Activetcl] file content does not update | Re: [Activetcl] file content does not update
> 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


Mahmood Naderan schrieb: 
I wrote a program that by clicking the the "save" button, some strings are appended to a fil
e. 
> ��� set out2 [open "cabprop.dat" a+]
> �� �# add some strings
> �� �close $out2
> �� �# destroy window
> The problem is after the window (the window that contains "save") has closed, the file cont
ent won't get updated. I have to close the main window and after that the text editor prompt
s for reloading the file. I don't know why... 'close' command should close the file but it d
oesn't work until the main window is closed.
> 
> Thanks,
> _mnaderan_
> 
> 
> -- 
> This email was Anti Virus checked.
> 
________________________________

> _______________________________________________
> ActiveTcl mailing list
> ActiveTcl@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>   

-- 

ToolBox Solution GmbH
CEO/CTO Tillmann A. Basien
�
Balinger Stra�e 37A
D-70567 Stuttgart
�
Fon: �+49�(0)�711�71�68�631�
Hy : �+49 (0...
Fax: +49 (0) 711 45 70 899
** Sun Advantage Partner **
�
mailto:tab@[...].de / http://www.tbsol.de� HRB: 23711
�
�
This message and any files or documents attached are strictly confidential or otherwise lega
lly protected. It is intended only for the individual or entity named. If you are not the na
med addressee or have received this email in error, please inform the sender immediately, de
lete it from your system and do not copy or disclose it or use it for any purpose. Please al
so note that transmission cannot be guaranteed to be secure or error-free.


      
Thread:
Mahmood Naderan
Mahmood Naderan
Mahmood Naderan
Larry W. Virden
Thomas Wunderlich

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved