From: Li Chen Date: 2008-10-14T23:53:11+09:00 Subject: Re: How to open a file with win32ole gpy good wrote: > try this: > > require 'win32ole' > fs=WIN32OLE.new('SAPI.SpFileStream') > > p fs.ole_method("open").params > > file='c:/test.txt' > > > fs.Open(file,2) #least two params > fs.write("data") > fs.Close Hi bud, Thank you very much for the tips. It is so sweet. From this example I guess that if a method is on the list but the object cannot receive it, most likely that more parameters need to be passed in. One more question: How am I supposed that I should pass number 2 in the script above, instead of other numbers like, 0, 1, 10,...? Li -- Posted via http://www.ruby-forum.com/.