What is the use of truncate() method in file?
What is the use of truncate() method in file? Correct Answer truncates the file size
The method truncate() truncates the file size. Following is the syntax for truncate() method: fileObject.truncate( ) Parameters size — If this optional argument is present, the file is truncated to (at most) that size.
মোঃ আরিফুল ইসলাম
Feb 20, 2025