Home | History | Annotate | Download | only in python2.7

Lines Matching defs:read

1 r"""File-like objects that read from or write to a string buffer.
12 buf = f.read() # read until EOF
13 buf = f.read(n) # read up to n bytes
14 buf = f.readline() # read until end of line ('\n') or EOF
119 def read(self, n = -1):
120 """Read at most size bytes from the file
121 (less if the read hits EOF before obtaining size bytes).
123 If the size argument is negative or omitted, read all data until EOF
140 r"""Read one entire line from the file.
169 """Read until EOF using readline() and return a list containing the
170 lines thus read.
285 text = open(file, 'r').read()
302 line2 = f.read(len(line))
309 line2 = f.read()
312 print 'Read', len(list), 'more lines'