My text file has n number of procedures. I could get only the line which has the word "Procedure" but i have to copy the entire block. Could someone please help me with this.
We can't help with what we can't see
You need to post your code, explain what you are trying to do and the excepted output.
Not doing the above, just leaves folks to guess, which is not helpful to you and not a good use of resources for those wishing to participate.