Python Programming - Reading and Writing Files - Discussion

Discussion Forum : Reading and Writing Files - General Questions (Q.No. 85)
85.
What is the purpose of the file.truncate() method?
Closes the file
Removes specified characters from the file
Changes the file's access mode
Truncates the file at the current position
Answer: Option
Explanation:
file.truncate() truncates the file at the current position.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.