Python Programming - Reading and Writing Files - Discussion
Discussion Forum : Reading and Writing Files - General Questions (Q.No. 93)
93.
How can you check if a file named "output.txt" is writable?
Answer: Option
Explanation:
Using
os.access()
with the os.W_OK
flag to check if the file is writable.
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