Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 60)
60.
How can you remove a file named "data.txt"?
remove_file("data.txt")
os.remove("data.txt")
delete_file("data.txt")
file.delete("data.txt")
Answer: Option
Explanation:
Using os.remove() to remove a file in Python.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.