Examveda

What is the purpose of the truncate() method in file handling?

A. It resizes the file to the specified size

B. It writes data to the file

C. It closes the file

D. It deletes the file

Answer: Option A


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python