@with_open_mode('r')
@with_sizes('small', 'medium', 'large')
def read_whole_file(f):
 f.seek(0)
 while f.read():
  pass

@ with_open_mode ( 'r' ) @ with_sizes ( 'small' , 'medium' , 'large' ) def read_whole_file ( f ) : f . seek ( 0 ) while f . read ( ) : pass
read whole contents at once .