I have many dat files. I do not want to put my matlab code at the same place as the directory that contains the .dat files. Therefore, I change the directory as follows:
Now, I am at the directory that I want. I can open the files one by one. I know how to automize this.
Now that I have opened my dat file, I want to search for a particular text. This can be possible by reading it line by line until the end and searching for that text. The dat file has both number and alphabet. If it doesn't find that text, it goes to the next dat file and continues to search. If it ever finds that keyword, it notifies.
Can you please help me with that?