getting a specific paragraph from a .txt file
Show older comments
This might sound like a stupid question, but is there was way of retrieving a specific paragraph from a .txt file please? I've written the conditions for various experiments in a txt file, so like
test1
-
-
test2
-
-
and so on. I was wondering if I could say get the user to input the test number (on a gui) and then use a strcat function to merge test and the number and then somehow retrieve the paragraph that corresponds to that number so I can then display it on the gui. Is there a way of doing that please?
Thanks
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 14 Jul 2016
0 votes
You can use regexp
Categories
Find more on Logical 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!