Python Programming - Reading and Writing Files - Discussion
Discussion Forum : Reading and Writing Files - General Questions (Q.No. 19)
19.
What is the purpose of the
truncate()
method when working with files?
Answer: Option
Explanation:
The
truncate()
method is used to remove all contents of the file from the current position.
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