How to read input from a port ?

Hi ...

My application takes input from a file.

Now, I want to change it so that it takes input from a local port ..

How can I do it?

Thanks,

RC

[181 byte] By [cratnama] at [2007-11-27 11:14:58]
# 1

take a look.

http://java.sun.com/docs/books/tutorial/networking/index.html

pbulgarellia at 2007-7-29 14:10:15 > top of Java-index,Core,Core APIs...
# 2

BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream()))

null

novice_roota at 2007-7-29 14:10:15 > top of Java-index,Core,Core APIs...
# 3

Well that works !

Thanks !

cratnama at 2007-7-29 14:10:15 > top of Java-index,Core,Core APIs...