<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > myfile_content is an object and you have only opened the file. Python > doesn't yet know whether you want to read it, copy it etc. > > to read it try > > text = myfile_content.readlines() > print text > > this should be in most tutorials >
readlines() will give you the file content as a list of newline-terminated strings. If you just want the whole file in one big string do: text = myfile_content.read() And, yes, you should wade through some of the tutorials, this is basic material. -- Paul -- http://mail.python.org/mailman/listinfo/python-list