truncate « File « Perl





1.Truncate a file
2.To truncate the data in a file, you can use the truncate function: