This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to read a set of lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to read a set of lines" Watch "how to read a set of lines" New topic
Author

how to read a set of lines

preethi Ayyappan
Ranch Hand

Joined: Oct 04, 2007
Posts: 518
Hi,

In the above code,i am originating(dialing) a mobile number by using originate command.If once the call is originated, a set of events will be generated.I am reading those generated events by using the



But I have to use the above inside a while loop.then only,i can able to read all the lines.without while loop,I can able to read only a single line.If i use while loop,I am unable to break the while loop and continue the whole program.

The issue i have to solve is,I have to read all the lines of the generated events and i have to dial the numbers continuously.

Please assist me to solve this while loop issue.If i am not clear,I will explain more.

Thanks




Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41036
    
  43
This is likely unrelated to the issue at hand, but the code has a lingering bug: Don't println to a Socket


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: how to read a set of lines
 
Similar Threads
accessing a server using socket connection
Problem in file transfer
Socket program for linux
passing commands using socket connection
problem with writing file , please help