The moose likes I/O and Streams and the fly likes How to read input from a serial port and then transfer it to a txt file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "How to read input from a serial port and then transfer it to a txt file?" Watch "How to read input from a serial port and then transfer it to a txt file?" New topic
Author

How to read input from a serial port and then transfer it to a txt file?

macpatel patel
Greenhorn

Joined: Jun 30, 2009
Posts: 1
Hii I would like to know how I shall read the input from a serial port and then transfer it to txt file using java
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 7796

COM port access is made through the javax.comm api.
The latest version of the comm api does not support Windows, so if you are on that platform your options are listed on our Java IO FAQ.
Have a look at the Java Tutorial for how to write to a file.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
 
subject: How to read input from a serial port and then transfer it to a txt file?
 
Two Laptop Bag