How to Split a Text File into Many Text Files ?
Show older comments
I have a text file which contains many Paragraphs.
Each Paragraph starts with a "greater than" ( > ) symbol.
I would like to split each paragraph into new text file using MATLAB.
Is it possible ?
Accepted Answer
More Answers (1)
Sheldon Ho
on 12 Jun 2019
0 votes
The line: fprintf('%s\n', CStr{Index(iP):Index(iP + 1) - 1});
should be: fprintf(FID,'%s\n', CStr{1,Index(iP):Index(iP + 1) - 1});
Categories
Find more on Template Matching in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!