[Tutor] (no subject)

sudhir prasad sudheer.kay at gmail.com
Sat Jan 9 10:53:56 CET 2010


hi,
iam a beginner.

sample_file = file("/home/ee08m082/Desktop/python/123.txt","w")
sample_file.write("About Pythons\n")

in the above two line code,123.txt is being created but "About Pythons" is
not being written in the file.
my OS is  redhat  linux and python version is 2.3.4

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100109/b31137ac/attachment.htm>


More information about the Tutor mailing list