missing () after close.
----- Original Message -----
From: Peter Milliken
To: 'DEEPAK PANICKAR /EXT/BILLJ/BKC' ; Jython-Users (E-mail)
Sent: Thursday, January 02, 2003 8:53 PM
Subject: RE: [Jython-users] File writing

Bug in Jython (somewhere :-)).
Add a
before the close and it works fine.
-----Original Message-----
From: DEEPAK PANICKAR /EXT/BILLJ/BKC [mailto:deepak.panickar@billjunction.com]
Sent: Friday, January 03, 2003 6:25 AM
To: Jython-Users (E-mail)
Subject: [Jython-users] File writing


	I am using a following code in a .py file
WRITEF = open('Script_Err.txt','a')
WRITEF.write('Good Morning')

If i try to run this file using jython command
c:\jython FileWrite.py
it creates a empty file

but if i run this using python command
c:\python FileWrite.py
it work perfectly

why is it so.??

"This e-mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that ICICI Bank or its subsidiaries and associated companies, (collectively "ICICI Group"), are unable to exercise control or ensure or guarantee the integrity of/over the contents of the information contained in e-mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of ICICI Group.Before opening any attachments please check them for viruses and defects."

Warning: Copyright ResMed. Where the contents of this email and/or attachment includes materials prepared by ResMed, the use of those materials is subject exclusively to the conditions of engagement between ResMed and the intended recipient.

This communication is confidential and may contain legally privileged information. By the use of email over the Internet or other communication systems, ResMed is not waiving either confidentiality of, or legal privilege in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call ResMed immediately on +61 2 9886 5000 Sydney, Australia.