How to read data from computer COM Port

I want to read data from computer's comport port 'COM1', then I put new data into this COM port, I don't know how to do it. Anyone knows how to read data from COM1 port and write data into COM1 port? Source code is better.Thanks in advance!Best regards,Edward
[291 byte] By [EdwardKinga] at [2007-10-2 9:09:35]
# 1

Hi,

Sorry for my english, but I speak spanish =) ... well, I founded something about Port Programming ( in english ) in a group of Yahoo " http://mx.groups.yahoo.com/group/javaUp " , only you need register and you can acces to the files (Archivos, in spanish ) , that is in " Archivos > Cursos y Documentacion > PortProgramming " .... well, I hope that it help you

gerrarrda at 2007-7-16 23:16:34 > top of Java-index,Java Essentials,Java Programming...