jasong
01-20-2007, 11:27 PM
Since I'm obsessive compulsive, I like to keep track of patterns that my brain latches onto to. My latest addiction has to with ecm curves on this page. (http://oddperfect.no-ip.com:8201/)
I want to create a file that does the following:
If you look, you'll notice that the page has a very basic pattern to it. Basically, I want to look up two strings. The first string is 3221_73M. When that string is found, I want to find 260000000(7 zeros, there) and look up the number of curves next to it. I then want to take a text file called 3221_73M.txt, print a time stamp on the first available line, a space, the curve number, a slash, then '43,670'.
The second string is 2801_83M. I'd like to do something similar to that one, except I want to look up 43000000, do the same stuff, but after the slash for this one, print 7771.
If it isn't too much trouble, could someone help me with this? I"m on Windows, btw.
I want to create a file that does the following:
If you look, you'll notice that the page has a very basic pattern to it. Basically, I want to look up two strings. The first string is 3221_73M. When that string is found, I want to find 260000000(7 zeros, there) and look up the number of curves next to it. I then want to take a text file called 3221_73M.txt, print a time stamp on the first available line, a space, the curve number, a slash, then '43,670'.
The second string is 2801_83M. I'd like to do something similar to that one, except I want to look up 43000000, do the same stuff, but after the slash for this one, print 7771.
If it isn't too much trouble, could someone help me with this? I"m on Windows, btw.