To read the first ‘n’ characters from a file object fileObj, we use:

1

infile.read()

2
infile.read(n)
3
infile.readline(n)
4
infile.readlines()

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation