Python Programming - Reading and Writing Files - Discussion
Discussion Forum : Reading and Writing Files - General Questions (Q.No. 1)
1.
How can you open a file named "example.txt" in Python for reading?
Answer: Option
Explanation:
To open a file for reading, you should use the mode "r" in the
open()
function.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers