sudhir prasad wrote:
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
You forgot to close the file.
sample_file.close()
DaveA
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor