f=open('11.txt')
>>> data=f.read()
>>> f.close
<built-in method close of file object at 0x1050e0d20>
>>> data
"{\\rtf1\\ansi\\ansicpg936\\cocoartf1504\n{\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;}\n{\\colortbl;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;\\csgray\\c100000;}\n\\paperw11900\\paperh16840\\margl1440\\margr1440\\vieww10800\\viewh8400\\viewkind0\n\\pard\\tx566\\tx1133\\tx1700\\tx2267\\tx2834\\tx3401\\tx3968\\tx4535\\tx5102\\tx5669\\tx6236\\tx6803\\pardirnatural\\partightenfactor0\n\n\\f0\\fs24 \\cf0 Hi,\\\nI\\'92m in a file\\\ncool}"
>>> readline()
Traceback (most recent call last):
File "<pyshell#42>", line 1, in <module>
readline()
NameError: name 'readline' is not defined