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
πŸ’¬ Discuss
βœ… Correct Answer: (A) truncates the file size
Explanation: the method truncate() truncates the file size. following is the syntax for truncate() method:

Explanation by: Mr. Dubey
the method truncate() truncates the file size. following is the syntax for truncate() method:

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
948
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate