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 }
In reply to Re: Extracting pattern from a file
by Ratazong
in thread Extracting pattern from a file
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |