Q.

What is the use of truncate() method in file?

A. truncates the file size
B. deletes the content of the file
C. deletes the file size
D. none of the mentioned
Answer» A. truncates the file size
Explanation: the method truncate() truncates the file size. following is the syntax for truncate() method:
2.1k
0
Do you find this helpful?
6

Discussion

No comments yet