Hi
I am using the URL class, but am having trouble while reading in from the input stream. I am using readLine to read from the stream, but with some pages I do not come out of the loop. Is there any way to set a timeout so that after some period of time the stream will close automatically?
Thanks
I am using the URL class, but am having trouble while reading in from the input stream. I am using readLine to read from the stream, but with some pages I do not come out of the loop. Is there any way to set a timeout so that after some period of time the stream will close automatically?
Thanks