Truncate file

This function uses a Perl script to truncates a file to a specified number bytes without creating a second copy.

Download
Download

You are now following this Submission

Cite As

Dan Dolan (2026). Truncate file (https://www.mathworks.com/matlabcentral/fileexchange/182650-truncate-file), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: FileResize

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0

Download