MATLAB Answers

How to copy only paragraph from text file

3 views (last 30 days)
Ole
Ole on 26 Aug 2017
Answered: KSSV on 26 Aug 2017
I would like to copy a paragraph from text file ( Sample text Sample text). The paragraphs are divided by 1-1 like numbering.
from a text file test.txt
1-1
Sample text
Sample text
1-2
Sample text
Sample text
1-3
Sample text
Sample text
1-4
Sample text
Sample text
1-5
Sample text
Sample text

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by