Thanks a lot MillerH,
your code works perfectly, it does exactly what I was expecting.
For rovf comment, I work for an ISP and we need to take some show output from Cisco equipments and copy and paste SOME of the output to a file. It's just quicker/easier to do this this way.
Thanks again...