No BSD License  

Highlights from
CatOrSplitFile

image thumbnail
from CatOrSplitFile by Michael Robbins
concatenates or splits files with an optional token header.

WhichCatOrSPlitFiles(filename)
function B = WhichCatOrSPlitFiles(filename)

FID = fopen(which(filename),'rt');
if FID>-1
    slurp = fscanf(FID,'%c');
    fclose(FID);
    A=regexp(slurp,'(?:CatOrSplitFiles\s+<)([^>]+)','tokens');
    B=[A{:}]';
end;

Contact us at files@mathworks.com