adplus-dvertising
frame-decoration

Question

To read the next line of the file from a file object infile, we use

a.

infile.read(2)

b.

infile.read()

c.

infile.readline()

d.

infile.readlines()

Posted under Python

Answer: (c).infile.readline()

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 next line of the file from a file object infile, we use