> fsock = open("c:/TEMP/hello.txt") This opens the file ready for you to read it. Thats all. You need to tell Python what you want to do with the file now that you've opened it.
> why it does not show on the output. To display the contents you need print fsock.read() Have a look at the Handling Files topic in my tutorial for more options, Alan G Author of the learn to program web tutor http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor