adplus-dvertising
frame-decoration

Question

To read the entire remaining contents of the file as a string from a file object infile, we use

a.

infile.read(2)

b.

infile.read()

c.

infile.readline()

d.

infile.readlines()

Posted under Python

Answer: (b).infile.read()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To read the entire remaining contents of the file as a string from a file object infile, we use