09-04-2014 03:07 PM
Well, I have no idea where to start with this. Basically I want to write a program which scans for individual words from a text file. And then depending on what those words are it will execute further functions but for now I just want to figure out the first part: how to scan for individual words from a text file.
I believe I can accomplish this with the Scan From File function, but all the tutorials I find only talk about reading the file and outputting its contents. I want to do something with the contents instead of just outputting them.
09-04-2014 03:23 PM
09-04-2014 03:40 PM
It is a '.txt' file. This file I have attached is what I have now. This seems to use a case structure and looks for the numeric value stated in the case within the file, then outputs whatever is after that value from the file. Problem is it only looks for numbers and not words. Plus I don't need the stuff after the number. I just need the one word if that makes sense. It's a start.
09-04-2014 03:45 PM
09-04-2014 03:50 PM
It's a .txt, as is made with Windows Notepad. I've attached the actual file I'm using here. Not much, but this is it.
09-04-2014 03:55 PM
If you are looking for specific words, then you might want to look at the Match Pattern function.
09-04-2014 04:23 PM
Thanks crossrulz and Dennis. I figured out how to use it and Match Pattern is exactly what I needed.