File Manipulation Library

Library with functions to manipulate files through Matlab.

You are now following this Submission

My library of functions to handle with files.
The core feature is the ability to create a cell variable with the names of all files in a given folder.
It opens a wide spectrum of manipulations of many files on a single movement.
The second core feature is the function to write a string of any size into a file according to the a given enconding, e.g. ISO-8859-1, UTF-8, etc.
Some functions may not work on Mac. I cannot test the compatibility.
Each file has a brief description of itself and some examples of usage.
Some files were used in these papers:
(a) International Journal of Computer Science and Software Engineering (IJCSSE), Volume 5, Issue 7, July 2016
ISSN (Online): 2409-4285 www.IJCSSE.org Page: 126-134
(b) LagranTexPac: A Software Tool to Obtain the Dynamic Equations of Mechanical Systems
International Journal of Computer Theory and Engineering vol. 9, no. 4, pp. 242-249, 2017
DOI: 10.7763/IJCTE.2017.V9.1145

Cite As

fhz (2026). File Manipulation Library (https://au.mathworks.com/matlabcentral/fileexchange/71864-file-manipulation-library), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

file, all files renamed to always contains the prefix "fc_lib_file_<...>".

1.3.0

Minor bug with contains and cell in fc_lib_ListOfFiles_filter corrected.
This error happened in older versions of Matlab.

New functions added:
fc_lib_file_text_remove_numbered_lines_left

1.2.0

New functions added:
fc_lib_file_add_header_to_file
fc_lib_copyfile_oldversion
fc_lib_createFile_AllFoldersName
fc_lib_createFile_AllFoldersName_ListOfFiles_filter

1.1.1

Update on fc_lib_copyfile_oldversion for varargin flexibilty

1.1

New functions added:
fc_lib_copyfile_oldversion
fc_lib_createFile_AllFoldersName
fc_lib_createFile_AllFoldersName_ListOfFiles_filter

1.0.1

1 - New image

1.0.0