in reply to Extracting pattern from a file
Hi gosh123,
Your problem can be solved quite easily. Please have a look at the following pseudocode:
HTH, Ratamy lastFoundTimescale = "undefined"; # declare a variable to hold the + last found value while(<>) # read the file line-by-line { if (line with timescale info found) store info to the variable lastFoundTimescale if (line with modulename found) process modulename and lastFoundTimescale }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting pattern from a file
by ghosh123 (Monk) on Apr 17, 2012 at 06:20 UTC | |
by Corion (Patriarch) on Apr 17, 2012 at 06:52 UTC | |
by rovf (Priest) on Apr 17, 2012 at 09:07 UTC |