I need to write a program in matlab that searches for key words in a text file and then reads in what comes after those words, then continue searching.i tried to use fscanf or textscan but i must be missing something
I have a text file and the content looks like this:
Maria, female,24,married
born in USA
George, male,32,married
born in Germany
There is an empty line before name George. For example, i want to read Maria and then read what comes after word Maria until the empty line.