Arun said:
I just wanted small help here, i want to repeat an array for every
30 seconds.
Obviously English is not your first language. Not a problem, but no
matter how hard I try, I can't figure out what you mean by "repeat an
array". First I thought you might mean "copy", but copying an array at
regular intervals doesn't make any sense to me.
Usually you repeat an action, something you (or the program) is doing,
like sending a message or checking for an event. An array is an object
and you can't repeat it, just like you can't repeat a chair or a tree.
lets us keep i want to send an array for every 30 seconds and also
should be able to quit as per the user.
Wild guess: "every 30 seconds" makes me guess that maybe sleep() is what
you are looking for.
On the other hand tasks that need to happen at a regular interval are
often better managed/kicked off by the scheduler of your OS.
jue