Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 73)
73.
What does the file.isatty() method check for?
Checks if the file is a text file
Checks if the file is open for reading
Checks if the file is a binary file
Checks if the file is connected to a terminal device
Answer: Option
Explanation:
file.isatty() checks if the file is connected to a terminal device.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.