To read two characters from a file object infile, we use
A. infile.read(2)
B. infile.read()
C. infile.readline()
D. infile.readlines()
Answer:A
To read two characters from a file object infile, we use
A. infile.read(2) B. infile.read() C. infile.readline() D. infile.readlines()
Explanation:Execute in the shell to verify.