dusku wrote:
Please suggest code.
No. You show us, what you have done so far and people will try to help you. But they don't give away code.
dusku wrote:
I am a beginner and has compiled the code from looking at available snippets on net.
Yeah, and that is the problem. Get a book and try to learn the basics, then advance to the techniques you need to solve your problem. You just got some bits from here and there and put them together without understanding what they do. Now you are stuck and hope, that somebody will do your work. How will that help you in the long-term?