Vidyalelo
Python · Q29

Files Handling in Python

Programming · Python · question 29

Q29

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()
Answer
C.
infile.readline()
D.
infile.readlines()

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board