With some efforts, definitely this program can be generalized. By using Regular Expressions or by using some pure loops also the same can be achieved.

Last edited by Sanskruti; 13Jul2007 at 19:02..