Python Programming - Reading and Writing Files - Discussion
Discussion Forum : Reading and Writing Files - General Questions (Q.No. 84)
84.
How can you check if a file named "data.txt" exists in the current directory?
Answer: Option
Explanation:
Using
os.path.isfile()
to check if the path refers to a regular file.
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