This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » I/O and Streams
 
RSS feed
 
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
Messages: 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
Messages: 6879

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]
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » I/O and Streams
 
RSS feed
 
New topic
The most intelligent Java IDE