From: Bob X Date: 2003-01-07T06:42:29+09:00 Subject: Re: WIN32 Serial Port "Dossy" wrote in message news:20030106212600.GP5932@panoptic.com... > On 2003.01.07, Dossy wrote: > > On 2003.01.07, Dossy wrote: > > > On 2003.01.07, Travis Whitton wrote: > > > > Is it possible to access the serial port using ruby on windows? If so, > > > > where can I find some example code on doing so? > > > > > > File.open("COM1:") { |io| > > > > Oops, slight omission: > > > > File.open("COM1:", "r+") { |io| > > > > > io.puts "ATDT5551212" > > > puts io.readline > > > } > > Should have tested this before I sent it to the list. It doesn't seem > to work under WinXP ... not sure why, though. > > -- Dossy > > -- > Dossy Shiobara mail: dossy@panoptic.com > Panoptic Computer Network web: http://www.panoptic.com/ > "He realized the fastest way to change is to laugh at your own > folly -- then you can let go and quickly move on." (p. 70) > One thing great about the *nix side...everything is a file. Not so on Windows.