Hi ... I have a data text file that contains some basic information on each line. I am wondering if there is a way to read the lines of the text file and search for a line containing a word (in my case "FINISH") and also finds todays date on the same line and returns the results as a number and displays a message box like: "Found 4 Lines" The text file looks like this:
Code:
START RUN: 1/11/2013 1:21:47 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
FINISH RUN: 1/11/2013 1:21:49 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
START RUN: 1/11/2013 2:08:59 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
FINISH RUN: 1/11/2013 2:09:02 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
START RUN: 1/11/2013 2:21:52 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
FINISH RUN: 1/11/2013 2:21:55 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
START RUN: 1/11/2013 2:52:11 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt
FINISH RUN: 1/11/2013 2:52:11 PM C:\Mach3\GCode\8-736604-01\8-736604-01 r1.txt